From d94bb431aaff8468c07757b65243e6c8cc917abd Mon Sep 17 00:00:00 2001 From: Trevor Radcliffe Date: Tue, 22 Mar 2022 19:04:03 +0000 Subject: [PATCH] Add DeviceProduct product varible to Soong For some modules, it is necessary to access the product name from Soong. In particular, the use case we have identified is that the product name needs to be appended to the artifact name in the dist copy. Bug: 224561567 Test: Unit Tests and build relevant target/modules Change-Id: Iaa0bfee8ef0d1201d8af02f7fc9e6ef081175da7 --- core/soong_config.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/core/soong_config.mk b/core/soong_config.mk index fd957c34f8..916dfbb7f2 100644 --- a/core/soong_config.mk +++ b/core/soong_config.mk @@ -46,6 +46,7 @@ $(call add_json_bool, Debuggable, $(filter userdebug eng, $(call add_json_bool, Eng, $(filter eng,$(TARGET_BUILD_VARIANT))) $(call add_json_str, DeviceName, $(TARGET_DEVICE)) +$(call add_json_str, DeviceProduct, $(TARGET_PRODUCT)) $(call add_json_str, DeviceArch, $(TARGET_ARCH)) $(call add_json_str, DeviceArchVariant, $(TARGET_ARCH_VARIANT)) $(call add_json_str, DeviceCpuVariant, $(TARGET_CPU_VARIANT))