summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Android.bp20
-rw-r--r--config/display-product-commonsys.mk7
2 files changed, 27 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 0000000..1f5effb
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,20 @@
+soong_config_module_type {
+ name: "qtidisplaycommonsys_cc_defaults",
+ module_type: "cc_defaults",
+ config_namespace: "qtidisplaycommonsys",
+ bool_variables: [
+ "gralloc_handle_has_no_custom_content_md_reserved_size",
+ ],
+ properties: [
+ "cflags",
+ ],
+}
+
+qtidisplaycommonsys_cc_defaults {
+ name: "qtidisplaycommonsys_defaults",
+ soong_config_variables: {
+ gralloc_handle_has_no_custom_content_md_reserved_size: {
+ cflags: ["-DGRALLOC_HANDLE_HAS_NO_CUSTOM_CONTENT_MD_RESERVED_SIZE"],
+ },
+ },
+}
diff --git a/config/display-product-commonsys.mk b/config/display-product-commonsys.mk
index 0b913da..52058d0 100644
--- a/config/display-product-commonsys.mk
+++ b/config/display-product-commonsys.mk
@@ -9,6 +9,7 @@ PRODUCT_PACKAGES += libdisplayconfig.system \
SOONG_CONFIG_NAMESPACES += qtidisplaycommonsys
# Soong Keys
SOONG_CONFIG_qtidisplaycommonsys := displayextension composer3ext
+SOONG_CONFIG_qtidisplaycommonsys += gralloc_handle_has_no_custom_content_md_reserved_size
# Soong Values
# displayextension controls global compile time disablement of SF extensions
@@ -21,7 +22,13 @@ SOONG_CONFIG_qtidisplaycommonsys_displayextension := false
# properties
SOONG_CONFIG_qtidisplaycommonsys_composer3ext := false
+SOONG_CONFIG_qtidisplaycommonsys_gralloc_handle_has_no_custom_content_md_reserved_size := false
+
ifeq ($(call is-vendor-board-platform,QCOM),true)
SOONG_CONFIG_qtidisplaycommonsys_displayextension := true
SOONG_CONFIG_qtidisplaycommonsys_composer3ext := true
endif
+
+ifeq ($(TARGET_GRALLOC_HANDLE_HAS_NO_CUSTOM_CONTENT_MD_RESERVED_SIZE),true)
+ SOONG_CONFIG_qtidisplaycommonsys_gralloc_handle_has_no_custom_content_md_reserved_size := true
+endif