commit | 5b55f926830963c02ab1d2d91e46442f04ba3af0 | [log] [tgz] |
---|---|---|
author | Stephen Boyd <swboyd@google.com> | Mon Oct 21 10:46:09 2024 -0700 |
committer | Stephen Boyd <swboyd@google.com> | Mon Nov 04 16:52:19 2024 -0800 |
tree | 5060bdf9f6ff3188606c17c0f94be2221e563f27 | |
parent | fe4906450c784d6ab9ee13a048f52f9a0cee4940 [diff] |
core/Makefile: Make PACK_DESKTOP_{RECOVERY,UPDATE}_IMAGE into product variable Make the PACK_DESKTOP_UPDATE_IMAGE and PACK_DESKTOP_RECOVERY_IMAGE variables into product variables PRODUCT_BUILD_DESKTOP_UPDATE_IMAGE and PRODUCT_BUILD_DESKTOP_RECOVERY_IMAGE so that board specific mk files can override the value of these variables. The original variables can only be appended to or overridden with 'override' because we use 'inherit-product'. The use of 'inherit-product' causes the test in this Makefile to always succeed because the variables are set to 'true' by default. The only other way to reset these variables seems to be to use 'override <var> = ' in the board's product mk file, which isn't preferred vs. using a product variable. Bug: 368171802 Test: m pack-update-image; \ m pack-recovery-image Change-Id: Iba3bc8bf1715785662260ad7dfc0927cb3e52477
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.