Hookup GRALLOC_HANDLE_HAS_RESERVED_SIZE
* Needed for camera on redbull 13
Change-Id: Ibc1d941f8a6e5e61e3a56cb0065e387022fa3441
diff --git a/build/soong/Android.bp b/build/soong/Android.bp
index 6df8f7f..3c5a0b8 100644
--- a/build/soong/Android.bp
+++ b/build/soong/Android.bp
@@ -192,6 +192,23 @@
},
}
+soong_config_module_type {
+ name: "gralloc_handle_reserved_size",
+ module_type: "cc_defaults",
+ config_namespace: "omniGlobalVars",
+ bool_variables: ["gralloc_handle_has_reserved_size"],
+ properties: ["cflags"],
+}
+
+gralloc_handle_reserved_size {
+ name: "gralloc_handle_has_reserved_size_defaults",
+ soong_config_variables: {
+ gralloc_handle_has_reserved_size: {
+ cflags: ["-DGRALLOC_HANDLE_HAS_RESERVED_SIZE"],
+ },
+ },
+}
+
// QCOM specific config modules
soong_config_module_type {
name: "metadata_fde_key",