diff --git a/core/build-system.html b/core/build-system.html index b872909c07..181e939920 100644 --- a/core/build-system.html +++ b/core/build-system.html @@ -444,8 +444,12 @@ LOCAL_GENERATED_SOURCES += $(GEN)

Unbundled build has several meanings by the context. Let me explain the meaning by the flags related to "unbundled build"

TARGET_BUILD_UNBUNDLED

-

The source tree might not have the full platform sources. It is always set if -TARGET_BUILD_APPS or TARGET_BUILD_UNBUNDLED_IMAGE is set.

+

+ The source tree might not have the full platform sources. It turns on + TARGET_BUILD_USE_PREBUILT_SDKS, unless + UNBUNDLED_BUILD_SDKS_FROM_SOURCE is set. It is always set if + TARGET_BUILD_APPS or TARGET_BUILD_UNBUNDLED_IMAGE is set. +

TARGET_BUILD_USE_PREBUILT_SDKS

It is an internal flag. If it is set, prebuilt SDKs are used, even if a module's LOCAL_SDK_VERSION is current (including system_current, diff --git a/core/config.mk b/core/config.mk index 48aa724b32..e2bdcbd5b2 100644 --- a/core/config.mk +++ b/core/config.mk @@ -496,7 +496,9 @@ TARGET_BUILD_USE_PREBUILT_SDKS := DISABLE_PREOPT := ifneq (,$(TARGET_BUILD_APPS)$(TARGET_BUILD_UNBUNDLED_IMAGE)) DISABLE_PREOPT := true - ifndef UNBUNDLED_BUILD_SDKS_FROM_SOURCE +endif +ifeq (true,$(TARGET_BUILD_UNBUNDLED)) + ifneq (true,$(UNBUNDLED_BUILD_SDKS_FROM_SOURCE)) TARGET_BUILD_USE_PREBUILT_SDKS := true endif endif