From 57aa920ddbb122f9e577650f102c7400d9731e89 Mon Sep 17 00:00:00 2001 From: Dan Willemsen Date: Wed, 11 May 2016 00:23:38 -0700 Subject: [PATCH] Use product-specific Soong outputs This way, when switching between two products, we don't need to re-run kati. Change-Id: I0a8b3b49f1b76d9e120ea93bb5d2aa06cd189679 --- core/soong.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/soong.mk b/core/soong.mk index 990a861d9..df581aad5 100644 --- a/core/soong.mk +++ b/core/soong.mk @@ -8,7 +8,7 @@ SOONG_VARIABLES := $(SOONG_OUT_DIR)/soong.variables # Only include the Soong-generated Android.mk if we're merging the # Soong-defined binaries with Kati-defined binaries. ifeq ($(USE_SOONG),true) -SOONG_ANDROID_MK := $(SOONG_OUT_DIR)/Android.mk +SOONG_ANDROID_MK := $(SOONG_OUT_DIR)/Android-$(TARGET_PRODUCT).mk endif # We need to rebootstrap soong if SOONG_OUT_DIR or the reverse path from @@ -37,6 +37,8 @@ $(SOONG_VARIABLES): FORCE $(hide) mkdir -p $(dir $@) $(hide) (\ echo '{'; \ + echo ' "Make_suffix": "-$(TARGET_PRODUCT)",'; \ + echo ''; \ echo ' "Platform_sdk_version": $(PLATFORM_SDK_VERSION),'; \ echo ' "Unbundled_build": $(if $(TARGET_BUILD_APPS),true,false),'; \ echo ' "Brillo": $(if $(BRILLO),true,false),'; \ -- 2.11.0