From 41927e48384123def2ae2c594bb4bd5854145411 Mon Sep 17 00:00:00 2001 From: Adrian DC Date: Mon, 24 Jul 2017 14:04:34 +0200 Subject: [PATCH] soong_config: Add TARGET_HAS_LEGACY_CAMERA_HAL1 variable * Soong product variable 'has_legacy_camera_hal1' Change-Id: I10800cba0c431297b5d7aad6e97d57a01232d73e Signed-off-by: Adrian DC --- build/soong/android/variable.go | 4 ++++ build/soong/soong_config.mk | 1 + 2 files changed, 5 insertions(+) diff --git a/build/soong/android/variable.go b/build/soong/android/variable.go index 4b905d99..cfa5c7d3 100644 --- a/build/soong/android/variable.go +++ b/build/soong/android/variable.go @@ -1,5 +1,8 @@ package android type Product_variables struct { + Has_legacy_camera_hal1 struct { + Cflags []string + } Needs_text_relocations struct { Cppflags []string } @@ -19,6 +22,7 @@ type Product_variables struct { } type ProductVariables struct { + Has_legacy_camera_hal1 *bool `json:",omitempty"` Needs_text_relocations *bool `json:",omitempty"` Specific_camera_parameter_library *string `json:",omitempty"` Target_shim_libs *string `json:",omitempty"` diff --git a/build/soong/soong_config.mk b/build/soong/soong_config.mk index 40582079..00043252 100644 --- a/build/soong/soong_config.mk +++ b/build/soong/soong_config.mk @@ -4,6 +4,7 @@ lineage_soong: $(hide) (\ echo '{'; \ echo '"Lineage": {'; \ + echo ' "Has_legacy_camera_hal1": $(if $(filter true,$(TARGET_HAS_LEGACY_CAMERA_HAL1)),true,false),'; \ echo ' "Needs_text_relocations": $(if $(filter true,$(TARGET_NEEDS_PLATFORM_TEXT_RELOCATIONS)),true,false),'; \ echo ' "Specific_camera_parameter_library": "$(TARGET_SPECIFIC_CAMERA_PARAMETER_LIBRARY)",'; \ echo ' "Target_shim_libs": "$(subst $(space),:,$(TARGET_LD_SHIM_LIBS))",'; \