diff --git a/build/soong/Android.bp b/build/soong/Android.bp index c1951dc7..6c8b4da4 100644 --- a/build/soong/Android.bp +++ b/build/soong/Android.bp @@ -75,21 +75,3 @@ cc_library_headers { name: "qti_kernel_headers", defaults: ["generated_kernel_header_defaults"], } - -// Target platform agnostic config modules -soong_config_module_type { - name: "gralloc_10_usage_bits", - module_type: "cc_defaults", - config_namespace: "lineageGlobalVars", - value_variables: ["additional_gralloc_10_usage_bits"], - properties: ["cppflags"], -} - -gralloc_10_usage_bits { - name: "gralloc_10_usage_bits_defaults", - soong_config_variables: { - additional_gralloc_10_usage_bits: { - cppflags: ["-DADDNL_GRALLOC_10_USAGE_BITS=%s"], - }, - }, -} diff --git a/config/BoardConfigSoong.mk b/config/BoardConfigSoong.mk index 5e7313f1..16d42084 100644 --- a/config/BoardConfigSoong.mk +++ b/config/BoardConfigSoong.mk @@ -26,21 +26,16 @@ endef $(foreach v,$(EXPORT_TO_SOONG),$(eval $(call addVar,$(v)))) -SOONG_CONFIG_NAMESPACES += lineageGlobalVars -SOONG_CONFIG_lineageGlobalVars += \ - additional_gralloc_10_usage_bits - -# Set default values -TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS ?= 0 - -# Soong value variables -SOONG_CONFIG_lineageGlobalVars_additional_gralloc_10_usage_bits := $(TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS) - # Camera ifneq ($(TARGET_CAMERA_OVERRIDE_FORMAT_FROM_RESERVED),) $(call soong_config_set,camera,override_format_from_reserved,$(TARGET_CAMERA_OVERRIDE_FORMAT_FROM_RESERVED)) 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)) +endif + # Lineage Health HAL ifneq ($(TARGET_HEALTH_CHARGING_CONTROL_CHARGING_PATH),) $(call soong_config_set,lineage_health,charging_control_charging_path,$(TARGET_HEALTH_CHARGING_CONTROL_CHARGING_PATH))