soong_config: Add flag for legacy HW FDE

Change-Id: I4ced98000e7349135dfb62bba9579e1dbf6b959c
This commit is contained in:
Michael Bestas
2018-08-28 20:19:05 +03:00
parent e4dc50fa6a
commit c61fabe667
2 changed files with 5 additions and 0 deletions

View File

@@ -14,6 +14,9 @@ type Product_variables struct {
Supports_hw_fde_perf struct {
Cflags []string
}
Supports_legacy_hw_fde struct {
Cflags []string
}
Target_process_sdk_version_override struct {
Cppflags []string
}
@@ -42,6 +45,7 @@ type ProductVariables struct {
Specific_camera_parameter_library *string `json:",omitempty"`
Supports_hw_fde *bool `json:",omitempty"`
Supports_hw_fde_perf *bool `json:",omitempty"`
Supports_legacy_hw_fde *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"`

View File

@@ -9,6 +9,7 @@ $(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_bool, Supports_legacy_hw_fde, $(filter true,$(TARGET_LEGACY_HW_DISK_ENCRYPTION)))
$(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))