From e66f98fe7da891283f28240cf3410d66bb83c1dd Mon Sep 17 00:00:00 2001 From: Spandan Das Date: Tue, 2 Apr 2024 18:08:01 +0000 Subject: [PATCH] Add PRODUCT_MODULE_BUILD_FROM_SOURCE to sdk's product config `sdk` builds require sources of mainline modules. explicitly set this value to prevent reaching an incompatible state across release build flags and soong config namespaces prebuilt vs source selection mechanism. Test: will use go/abtd to run the failing target in b/332322437 https://android-build.corp.google.com/builds/abtd/run/L54400030002940286 Bug: 332322437 Change-Id: If65fb3706910ac5142d6ad9dc416190fa1c9ee89 --- target/product/sdk.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target/product/sdk.mk b/target/product/sdk.mk index 04649a2d48..1a073636ef 100644 --- a/target/product/sdk.mk +++ b/target/product/sdk.mk @@ -34,6 +34,9 @@ PRODUCT_DEVICE := mainline_x86 PRODUCT_BUILD_FROM_SOURCE_STUB := true +# Use sources of mainline modules +PRODUCT_MODULE_BUILD_FROM_SOURCE := true + ifeq ($(WITHOUT_CHECK_API),true) $(error WITHOUT_CHECK_API cannot be set to true for SDK product builds) endif