Merge "Prevent enabling prebuilts by default for builds that don't support them" am: 31860f66c7
am: ac6008302e
Original change: https://android-review.googlesource.com/c/platform/build/+/2513775 Change-Id: I4266087353d2c23f5a6fb7d95c52252b1ec76ecf Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
f54ad07923
1 changed files with 31 additions and 0 deletions
|
@ -41,6 +41,37 @@ $(call add_soong_config_var,ANDROID,PRODUCT_INSTALL_DEBUG_POLICY_TO_SYSTEM_EXT)
|
|||
# MODULE_BUILD_FROM_SOURCE.
|
||||
BRANCH_DEFAULT_MODULE_BUILD_FROM_SOURCE := true
|
||||
|
||||
ifneq ($(SANITIZE_TARGET)$(EMMA_INSTRUMENT_FRAMEWORK),)
|
||||
# Always use sources when building the framework with Java coverage or
|
||||
# sanitized builds as they both require purpose built prebuilts which we do
|
||||
# not provide.
|
||||
BRANCH_DEFAULT_MODULE_BUILD_FROM_SOURCE := true
|
||||
endif
|
||||
|
||||
# ART does not provide linux_bionic variants needed for products that
|
||||
# set HOST_CROSS_OS=linux_bionic.
|
||||
ifeq (linux_bionic,${HOST_CROSS_OS})
|
||||
BRANCH_DEFAULT_MODULE_BUILD_FROM_SOURCE := true
|
||||
endif
|
||||
|
||||
# ART does not provide host side arm64 variants needed for products that
|
||||
# set HOST_CROSS_ARCH=arm64.
|
||||
ifeq (arm64,${HOST_CROSS_ARCH})
|
||||
BRANCH_DEFAULT_MODULE_BUILD_FROM_SOURCE := true
|
||||
endif
|
||||
|
||||
# TV based devices do not seem to work with prebuilts, so build from source
|
||||
# for now and fix in a follow up.
|
||||
ifneq (,$(filter tv,$(subst $(comma),$(space),${PRODUCT_CHARACTERISTICS})))
|
||||
BRANCH_DEFAULT_MODULE_BUILD_FROM_SOURCE := true
|
||||
endif
|
||||
|
||||
# ATV based devices do not seem to work with prebuilts, so build from source
|
||||
# for now and fix in a follow up.
|
||||
ifneq (,${PRODUCT_IS_ATV})
|
||||
BRANCH_DEFAULT_MODULE_BUILD_FROM_SOURCE := true
|
||||
endif
|
||||
|
||||
ifneq (,$(MODULE_BUILD_FROM_SOURCE))
|
||||
# Keep an explicit setting.
|
||||
else ifeq (,$(filter docs sdk win_sdk sdk_addon,$(MAKECMDGOALS))$(findstring com.google.android.conscrypt,$(PRODUCT_PACKAGES)))
|
||||
|
|
Loading…
Reference in a new issue