soong_config: Add new flags for HW FDE
Add new flags for HW FDE to pass CFlags to source code.
CRs-Fixed: 2210986
Change-Id: I70d68f015ee8eb8d123ce863ce8e36d0310bc082
diff --git a/build/soong/android/variable.go b/build/soong/android/variable.go
index 67822fc..b5ffc65 100644
--- a/build/soong/android/variable.go
+++ b/build/soong/android/variable.go
@@ -6,6 +6,14 @@
Has_legacy_camera_hal1 struct {
Cflags []string
}
+ Supports_hw_fde struct {
+ Cflags []string
+ Header_libs []string
+ Shared_libs []string
+ }
+ Supports_hw_fde_perf struct {
+ Cflags []string
+ }
Target_process_sdk_version_override struct {
Cppflags []string
}
@@ -32,6 +40,8 @@
Has_legacy_camera_hal1 *bool `json:",omitempty"`
Java_Source_Overlays *string `json:",omitempty"`
Specific_camera_parameter_library *string `json:",omitempty"`
+ Supports_hw_fde *bool `json:",omitempty"`
+ Supports_hw_fde_perf *bool `json:",omitempty"`
Target_process_sdk_version_override *string `json:",omitempty"`
Target_shim_libs *string `json:",omitempty"`
Uses_generic_camera_parameter_library *bool `json:",omitempty"`
diff --git a/build/soong/soong_config.mk b/build/soong/soong_config.mk
index 19c2c94..4f350ca 100644
--- a/build/soong/soong_config.mk
+++ b/build/soong/soong_config.mk
@@ -7,6 +7,8 @@
$(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_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)))
$(call add_json_str_omitempty, Target_process_sdk_version_override, $(TARGET_PROCESS_SDK_VERSION_OVERRIDE))
$(call add_json_str_omitempty, Target_shim_libs, $(TARGET_LD_SHIM_LIBS))
$(call add_json_bool, Uses_generic_camera_parameter_library, $(if $(TARGET_SPECIFIC_CAMERA_PARAMETER_LIBRARY),,true))