commit | fa50d406bb37c045484641d093be152ac639e936 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Thu Apr 22 13:05:41 2021 -0700 |
committer | Colin Cross <ccross@android.com> | Thu Apr 22 13:05:41 2021 -0700 |
tree | 263fde488816007ae9469f9c0176784b0bd2567d | |
parent | 37b11b8cfb69966302fd52d9d343b702cfb43e5f [diff] |
Clear TARGET_PRODUCT and TARGET_BUILD_VARIANT when getting lunch menu An old TARGET_PRODUCT value pointing to a removed product or an invalid TARGET_BUILD_VARIANT value cause lunch to fail to read COMMON_LUNCH_CHOICES, clear them before calling into the build with get_build_var. Test: TARGET_PRODUCT=foobar TARGET_BUILD_VARIANT=foobar lunch Change-Id: I53d205784149ba7e32cc093f9d81d1a82c08bfc0
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.