soong: add TARGET_HAS_MEMFD_BACKPORT conditional
Change-Id: I71b3a86c96bfe53e93e99c071bc8f3a8c56c77b7
diff --git a/build/soong/Android.bp b/build/soong/Android.bp
index 19333a9..86d5f08 100644
--- a/build/soong/Android.bp
+++ b/build/soong/Android.bp
@@ -241,6 +241,23 @@
}
soong_config_module_type {
+ name: "has_memfd_backport",
+ module_type: "cc_defaults",
+ config_namespace: "blissGlobalVars",
+ bool_variables: ["has_memfd_backport"],
+ properties: ["cppflags"],
+}
+
+has_memfd_backport {
+ name: "has_memfd_backport_defaults",
+ soong_config_variables: {
+ has_memfd_backport: {
+ cppflags: ["-DHAS_MEMFD_BACKPORT"],
+ },
+ },
+}
+
+soong_config_module_type {
name: "bootloader_message_offset",
module_type: "cc_defaults",
config_namespace: "blissGlobalVars",
diff --git a/config/BoardConfigSoong.mk b/config/BoardConfigSoong.mk
index 1e912d0..075cd6c 100644
--- a/config/BoardConfigSoong.mk
+++ b/config/BoardConfigSoong.mk
@@ -32,6 +32,7 @@
bootloader_message_offset \
disable_postrender_cleanup \
has_legacy_camera_hal1 \
+ has_memfd_backport \
ignores_ftp_pptp_conntrack_failure \
needs_netd_direct_connect_rule \
target_init_vendor_lib \
@@ -63,6 +64,7 @@
# Soong bool variables
SOONG_CONFIG_blissGlobalVars_disable_postrender_cleanup := $(TARGET_DISABLE_POSTRENDER_CLEANUP)
SOONG_CONFIG_blissGlobalVars_has_legacy_camera_hal1 := $(TARGET_HAS_LEGACY_CAMERA_HAL1)
+SOONG_CONFIG_blissGlobalVars_has_memfd_backport := $(TARGET_HAS_MEMFD_BACKPORT)
SOONG_CONFIG_blissGlobalVars_ignores_ftp_pptp_conntrack_failure := $(TARGET_IGNORES_FTP_PPTP_CONNTRACK_FAILURE)
SOONG_CONFIG_blissGlobalVars_needs_netd_direct_connect_rule := $(TARGET_NEEDS_NETD_DIRECT_CONNECT_RULE)
SOONG_CONFIG_blissNvidiaVars_uses_nv_enhancements := $(NV_ANDROID_FRAMEWORK_ENHANCEMENTS)