From 4ccc17d3338ad45434de100fbcb95702bb077f6d Mon Sep 17 00:00:00 2001 From: Sebastiano Barezzi Date: Fri, 11 Jun 2021 00:39:41 +0200 Subject: [PATCH] soong: Add TARGET_CAMERA_BOOTTIME_TIMESTAMP conditional Change-Id: Ic48acda208fc9990fc5c9159ad06518d48f21477 --- build/soong/Android.bp | 17 +++++++++++++++++ config/BoardConfigSoong.mk | 2 ++ 2 files changed, 19 insertions(+) diff --git a/build/soong/Android.bp b/build/soong/Android.bp index 27c22312..dc07f490 100644 --- a/build/soong/Android.bp +++ b/build/soong/Android.bp @@ -174,6 +174,23 @@ ignores_ftp_pptp_conntrack_failure_defaults { }, } +soong_config_module_type { + name: "needs_camera_boottime", + module_type: "cc_defaults", + config_namespace: "lineageGlobalVars", + bool_variables: ["needs_camera_boottime"], + properties: ["cppflags"], +} + +needs_camera_boottime { + name: "needs_camera_boottime_defaults", + soong_config_variables: { + needs_camera_boottime: { + cppflags: ["-DTARGET_CAMERA_BOOTTIME_TIMESTAMP"], + }, + }, +} + soong_config_module_type { name: "needs_netd_direct_connect_rule", module_type: "cc_defaults", diff --git a/config/BoardConfigSoong.mk b/config/BoardConfigSoong.mk index 1d194a4c..47658042 100644 --- a/config/BoardConfigSoong.mk +++ b/config/BoardConfigSoong.mk @@ -34,6 +34,7 @@ SOONG_CONFIG_lineageGlobalVars += \ has_legacy_camera_hal1 \ has_memfd_backport \ ignores_ftp_pptp_conntrack_failure \ + needs_camera_boottime \ needs_netd_direct_connect_rule \ target_init_vendor_lib \ target_ld_shim_libs \ @@ -67,6 +68,7 @@ SOONG_CONFIG_lineageGlobalVars_disable_postrender_cleanup := $(TARGET_DISABLE_PO SOONG_CONFIG_lineageGlobalVars_has_legacy_camera_hal1 := $(TARGET_HAS_LEGACY_CAMERA_HAL1) SOONG_CONFIG_lineageGlobalVars_has_memfd_backport := $(TARGET_HAS_MEMFD_BACKPORT) SOONG_CONFIG_lineageGlobalVars_ignores_ftp_pptp_conntrack_failure := $(TARGET_IGNORES_FTP_PPTP_CONNTRACK_FAILURE) +SOONG_CONFIG_lineageGlobalVars_needs_camera_boottime := $(TARGET_CAMERA_BOOTTIME_TIMESTAMP) SOONG_CONFIG_lineageGlobalVars_needs_netd_direct_connect_rule := $(TARGET_NEEDS_NETD_DIRECT_CONNECT_RULE) SOONG_CONFIG_lineageNvidiaVars_uses_nv_enhancements := $(NV_ANDROID_FRAMEWORK_ENHANCEMENTS) SOONG_CONFIG_lineageQcomVars_legacy_hw_disk_encryption := $(TARGET_LEGACY_HW_DISK_ENCRYPTION)