commit | b3a503df7fc569207a349882b8c74f744323df08 | [log] [tgz] |
---|---|---|
author | Roland Levillain <rpl@google.com> | Fri Oct 04 14:06:26 2019 +0100 |
committer | Roland Levillain <rpl@google.com> | Fri Oct 04 18:35:49 2019 +0100 |
tree | 7c137e47b1e90ee36b7f414f014020a159f1732d | |
parent | f89f29d669387d0376b0594b0ee1a1447cd09906 [diff] |
Introduce build variable `OVERRIDE_TARGET_FLATTEN_APEX`. When `OVERRIDE_TARGET_FLATTEN_APEX` is defined (e.g. set in the environment), `TARGET_FLATTEN_APEX` is forcibly assigned its value. This is useful to enable/disable APEX flattening from the command line (thus ignoring the product's default configuration), for testing purposes. Note: Previously it was possible to set `TARGET_FLATTEN_APEX` directly and have the same effect, but recent changes in the build configuration now prevent that option. Test: Check that: export OVERRIDE_TARGET_FLATTEN_APEX=true \ && . ./build/envsetup.sh \ && lunch aosp_walleye-userdebug \ && export OVERRIDE_TARGET_FLATTEN_APEX=true \ && build/soong/soong_ui.bash --dumpvar-mode TARGET_FLATTEN_APEX returns: true Bug: 121117762 Change-Id: Ib9ccae38430340de38e4758b4f55df2c65ea60d5
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.