From 73296f14dc98a565c4bca13745004fa34f81a560 Mon Sep 17 00:00:00 2001 From: Arne Coucheron Date: Wed, 27 Dec 2017 11:36:09 +0100 Subject: [PATCH] soong_config: Add TARGET_USES_QCOM_BSP_LEGACY Change-Id: Ia5ddfa263df71388b19c77d2509c29791177208d --- build/core/qcom_target.mk | 1 + build/soong/android/variable.go | 4 ++++ build/soong/soong_config.mk | 3 ++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/build/core/qcom_target.mk b/build/core/qcom_target.mk index 3b14cca3..c25aa7c1 100644 --- a/build/core/qcom_target.mk +++ b/build/core/qcom_target.mk @@ -42,6 +42,7 @@ ifeq ($(BOARD_USES_QCOM_HARDWARE),true) TARGET_COMPILE_WITH_MSM_KERNEL := true ifneq ($(filter msm7x27a msm7x30 msm8660 msm8960,$(TARGET_BOARD_PLATFORM)),) + TARGET_USES_QCOM_BSP_LEGACY := true # Enable legacy audio functions ifeq ($(BOARD_USES_LEGACY_ALSA_AUDIO),true) USE_CUSTOM_AUDIO_POLICY := 1 diff --git a/build/soong/android/variable.go b/build/soong/android/variable.go index 8ed22f7b..221bf97a 100644 --- a/build/soong/android/variable.go +++ b/build/soong/android/variable.go @@ -6,10 +6,14 @@ type Product_variables struct { Uses_generic_camera_parameter_library struct { Srcs []string } + Uses_qcom_bsp_legacy struct { + Cppflags []string + } } type ProductVariables struct { Uses_generic_camera_parameter_library *bool `json:",omitempty"` Specific_camera_parameter_library *string `json:",omitempty"` Needs_text_relocations *bool `json:",omitempty"` + Uses_qcom_bsp_legacy *bool `json:",omitempty"` } diff --git a/build/soong/soong_config.mk b/build/soong/soong_config.mk index be592773..b5e469c4 100644 --- a/build/soong/soong_config.mk +++ b/build/soong/soong_config.mk @@ -6,6 +6,7 @@ lineage_soong: echo '"Lineage": {'; \ echo ' "Uses_generic_camera_parameter_library": $(if $(TARGET_SPECIFIC_CAMERA_PARAMETER_LIBRARY),false,true),'; \ echo ' "Specific_camera_parameter_library": "$(TARGET_SPECIFIC_CAMERA_PARAMETER_LIBRARY)",'; \ - echo ' "Needs_text_relocations": $(if $(filter true,$(TARGET_NEEDS_PLATFORM_TEXT_RELOCATIONS)),true,false)'; \ + echo ' "Needs_text_relocations": $(if $(filter true,$(TARGET_NEEDS_PLATFORM_TEXT_RELOCATIONS)),true,false),'; \ + echo ' "Uses_qcom_bsp_legacy": $(if $(filter true,$(TARGET_USES_QCOM_BSP_LEGACY)),true,false)'; \ echo '},'; \ echo '') > $(SOONG_VARIABLES_TMP)