soong: Add support to set vendor tag with client package name

* OEMs like OnePlus and Nothing detect camera package name to unlock features like 48mp.
* Use TARGET_CAMERA_PACKAGE_NAME to specify the package name.

Signed-off-by: AnierinB <anierin@evolution-x.org>
This commit is contained in:
Jake Weinstein
2023-10-17 14:53:21 +09:00
committed by Zabuka_zuzu
parent fbbbc0a3c1
commit 1f034f65df

View File

@@ -32,6 +32,14 @@ endef
$(foreach v,$(EXPORT_TO_SOONG),$(eval $(call addVar,$(v))))
# Camera
ifneq ($(TARGET_CAMERA_OVERRIDE_FORMAT_FROM_RESERVED),)
$(error TARGET_CAMERA_OVERRIDE_FORMAT_FROM_RESERVED is deprecated, please migrate to soong_config_set,camera,override_format_from_reserved)
endif
ifneq ($(TARGET_CAMERA_PACKAGE_NAME),)
$(call soong_config_set,camera,package_name,$(TARGET_CAMERA_PACKAGE_NAME))
endif
# Libui
ifneq ($(TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS),)
$(call soong_config_set,libui,additional_gralloc_10_usage_bits,$(TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS))