soong_config: Add flag for crypto waiting on QSEE to start
* Every single new device supports this logic except
a few ancient ones and nexus.
Change-Id: I9a5493667c6bb3636468a90df0da65cf5e8c3a8b
diff --git a/build/soong/android/variable.go b/build/soong/android/variable.go
index a3ce7f6..79bf947 100644
--- a/build/soong/android/variable.go
+++ b/build/soong/android/variable.go
@@ -6,6 +6,9 @@
Has_legacy_camera_hal1 struct {
Cflags []string
}
+ Should_skip_waiting_for_qsee struct {
+ Cflags []string
+ }
Supports_hw_fde struct {
Cflags []string
Header_libs []string
@@ -42,6 +45,7 @@
Additional_gralloc_10_usage_bits *string `json:",omitempty"`
Has_legacy_camera_hal1 *bool `json:",omitempty"`
Java_Source_Overlays *string `json:",omitempty"`
+ Should_skip_waiting_for_qsee *bool `json:",omitempty"`
Specific_camera_parameter_library *string `json:",omitempty"`
Supports_hw_fde *bool `json:",omitempty"`
Supports_hw_fde_perf *bool `json:",omitempty"`
diff --git a/build/soong/soong_config.mk b/build/soong/soong_config.mk
index 4083edf..342b322 100644
--- a/build/soong/soong_config.mk
+++ b/build/soong/soong_config.mk
@@ -6,6 +6,7 @@
$(call add_json_str_omitempty, Additional_gralloc_10_usage_bits, $(TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS))
$(call add_json_bool, Has_legacy_camera_hal1, $(filter true,$(TARGET_HAS_LEGACY_CAMERA_HAL1)))
$(call add_json_str, Java_Source_Overlays, $(JAVA_SOURCE_OVERLAYS))
+$(call add_json_bool, Should_skip_waiting_for_qsee, $(filter true,$(TARGET_KEYMASTER_SKIP_WAITING_FOR_QSEE)))
$(call add_json_str, Specific_camera_parameter_library, $(TARGET_SPECIFIC_CAMERA_PARAMETER_LIBRARY))
$(call add_json_bool, Supports_hw_fde, $(filter true,$(TARGET_HW_DISK_ENCRYPTION)))
$(call add_json_bool, Supports_hw_fde_perf, $(filter true,$(TARGET_HW_DISK_ENCRYPTION_PERF)))