diff --git a/build/soong/Android.bp b/build/soong/Android.bp index 74adabe220e02907f8107c0c38e1ad9e459a2138..07d4cc3e41cfbef54f15e3b3a02330f3c82bd9a2 100644 --- a/build/soong/Android.bp +++ b/build/soong/Android.bp @@ -71,6 +71,23 @@ aapt_version_code { }, } +soong_config_module_type { + name: "camera_override_format_from_reserved", + module_type: "cc_defaults", + config_namespace: "lineageGlobalVars", + bool_variables: ["camera_override_format_from_reserved"], + properties: ["cppflags"], +} + +camera_override_format_from_reserved { + name: "camera_override_format_from_reserved_defaults", + soong_config_variables: { + camera_override_format_from_reserved: { + cppflags: ["-DTARGET_CAMERA_OVERRIDE_FORMAT_FROM_RESERVED"], + }, + }, +} + soong_config_module_type { name: "gralloc_10_usage_bits", module_type: "cc_defaults", diff --git a/config/BoardConfigSoong.mk b/config/BoardConfigSoong.mk index 426da64b78af80a89151110dfed4d292c9d7f1bb..7cb0150a4d03a121ba1ca5e423044941b5e1899c 100644 --- a/config/BoardConfigSoong.mk +++ b/config/BoardConfigSoong.mk @@ -31,6 +31,7 @@ SOONG_CONFIG_lineageGlobalVars += \ aapt_version_code \ additional_gralloc_10_usage_bits \ bootloader_message_offset \ + camera_override_format_from_reserved \ gralloc_handle_has_custom_content_md_reserved_size \ gralloc_handle_has_reserved_size \ target_health_charging_control_charging_path \ @@ -64,6 +65,7 @@ SOONG_CONFIG_lineageQcomVars += \ endif # Soong bool variables +SOONG_CONFIG_lineageGlobalVars_camera_override_format_from_reserved := $(TARGET_CAMERA_OVERRIDE_FORMAT_FROM_RESERVED) SOONG_CONFIG_lineageGlobalVars_gralloc_handle_has_custom_content_md_reserved_size := $(TARGET_GRALLOC_HANDLE_HAS_CUSTOM_CONTENT_MD_RESERVED_SIZE) SOONG_CONFIG_lineageGlobalVars_gralloc_handle_has_reserved_size := $(TARGET_GRALLOC_HANDLE_HAS_RESERVED_SIZE) SOONG_CONFIG_lineageGlobalVars_uses_egl_display_array := $(TARGET_USES_EGL_DISPLAY_ARRAY) @@ -74,6 +76,7 @@ SOONG_CONFIG_lineageQcomVars_uses_pre_uplink_features_netmgrd := $(TARGET_USES_P # Set default values BOOTLOADER_MESSAGE_OFFSET ?= 0 TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS ?= 0 +TARGET_CAMERA_OVERRIDE_FORMAT_FROM_RESERVED ?= false TARGET_GRALLOC_HANDLE_HAS_CUSTOM_CONTENT_MD_RESERVED_SIZE ?= false TARGET_GRALLOC_HANDLE_HAS_RESERVED_SIZE ?= false TARGET_HEALTH_CHARGING_CONTROL_CHARGING_ENABLED ?= 1