vendor: Add soong variable for TARGET_CAMERA_BOOTTIME_TIMESTAMP
Change-Id: I3ec453510dd7e65014d7b0aa39bb02960dbc42fb
diff --git a/build/soong/Android.bp b/build/soong/Android.bp
index 3c13b40..af09475 100644
--- a/build/soong/Android.bp
+++ b/build/soong/Android.bp
@@ -406,6 +406,25 @@
}
soong_config_module_type {
+ name: "camera_boottime_timestamp",
+ module_type: "cc_defaults",
+ config_namespace: "blissQcomVars",
+ bool_variables: ["needs_camera_boottime_timestamp"],
+ properties: [
+ "cflags",
+ ],
+}
+
+camera_boottime_timestamp {
+ name: "needs_camera_boottime_defaults",
+ soong_config_variables: {
+ needs_camera_boottime_timestamp: {
+ cflags: ["-DTARGET_CAMERA_BOOTTIME_TIMESTAMP"],
+ },
+ },
+}
+
+soong_config_module_type {
name: "extended_compress_format",
module_type: "cc_defaults",
config_namespace: "blissQcomVars",
diff --git a/config/BoardConfigSoong.mk b/config/BoardConfigSoong.mk
index 9ee5069..58c976c 100644
--- a/config/BoardConfigSoong.mk
+++ b/config/BoardConfigSoong.mk
@@ -58,7 +58,8 @@
supports_hw_fde_perf \
uses_pre_uplink_features_netmgrd \
uses_qcom_bsp_legacy \
- uses_qti_camera_device
+ uses_qti_camera_device \
+ needs_camera_boottime_timestamp
# Only create display_headers_namespace var if dealing with UM platforms to avoid breaking build for all other platforms
ifneq ($(filter $(UM_PLATFORMS),$(TARGET_BOARD_PLATFORM)),)
@@ -84,6 +85,7 @@
SOONG_CONFIG_blissQcomVars_uses_pre_uplink_features_netmgrd := $(TARGET_USES_PRE_UPLINK_FEATURES_NETMGRD)
SOONG_CONFIG_blissQcomVars_uses_qcom_bsp_legacy := $(TARGET_USES_QCOM_BSP_LEGACY)
SOONG_CONFIG_blissQcomVars_uses_qti_camera_device := $(TARGET_USES_QTI_CAMERA_DEVICE)
+SOONG_CONFIG_blissQcomVars_needs_camera_boottime_timestamp := $(TARGET_CAMERA_BOOTTIME_TIMESTAMP)
# Set default values
BOOTLOADER_MESSAGE_OFFSET ?= 0