0b49c03727
Add a check to ban ELF prebuilts in PRODUCT_COPY_FILES. ELF prebuilts should be defined properly by cc_prebuilt_library_shared and cc_prebuilt_binary so that the build system can keep track of the file dependencies. To opt in this check, set this option in BoardConfig.mk: BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES := false After all devices that have ELF prebuilts in PRODUCT_COPY_FILES are tagged with BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES := true flip BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES to default false. After a device is cleaned up, remove its BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES := true setting. Bug: 140560012 Test: Set BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES := false Test: m # Should report any ELF prebuilt error in PRODUCT_COPY_FILES Change-Id: Id75dac9417aed9baa7c5e9388430ff9369cf9b4f |
||
---|---|---|
common | ||
core | ||
packaging | ||
target | ||
tests | ||
tools | ||
.gitignore | ||
Changes.md | ||
CleanSpec.mk | ||
Deprecation.md | ||
OWNERS | ||
README.md | ||
Usage.txt | ||
buildspec.mk.default | ||
envsetup.sh | ||
help.sh | ||
navbar.md | ||
rbesetup.sh | ||
tapasHelp.sh |
README.md
Android Make Build System
This is the Makefile-based portion of the Android Build System.
For documentation on how to run a build, see Usage.txt
For a list of behavioral changes useful for Android.mk writers see Changes.md
For an outdated reference on Android.mk files, see build-system.html. Our Android.mk files look similar, but are entirely different from the Android.mk files used by the NDK build system. When searching for documentation elsewhere, ensure that it is for the platform build system -- most are not.
This Makefile-based system is in the process of being replaced with Soong, a new build system written in Go. During the transition, all of these makefiles are read by Kati, and generate a ninja file instead of being executed directly. That's combined with a ninja file read by Soong so that the build graph of the two systems can be combined and run as one.