Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 40e6f9bd authored by Kun Niu's avatar Kun Niu
Browse files

Set UNBUNDLED_BUILD_SDKS_FROM_SOURCE to true by default in

module_common.mk if the branch is not using slim manifests.
This makes sure that mainline modules build locally are
using the build from source sdk.

Bug: 262783668
Test: time m atest && time atest-dev CtsNetTestCasesLatestSdk[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex] --verbose
Change-Id: I37b94448a45b0b811ae1815ad8c46589c62e8542
parent 2dcc3870
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -25,3 +25,8 @@ PRODUCT_SHIPPING_API_LEVEL := 29
# Builds using a module product should build modules from source, even if
# BRANCH_DEFAULT_MODULE_BUILD_FROM_SOURCE says otherwise.
PRODUCT_MODULE_BUILD_FROM_SOURCE := true

# Build sdk from source if the branch is not using slim manifests.
ifneq (,$(strip $(wildcard frameworks/base/Android.bp)))
  UNBUNDLED_BUILD_SDKS_FROM_SOURCE := true
endif