commit | d0dbeb37581e9a00b0cb2c9b8fa912af1eb246c1 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Mon Oct 22 10:42:44 2018 -0700 |
committer | Colin Cross <ccross@android.com> | Mon Oct 22 10:42:44 2018 -0700 |
tree | 3806fd58067fa5a63aeaee70a5af817778b014a6 | |
parent | 17c9e2a2960e8ef054593284c879d5a8d1d03fcf [diff] |
Always define sdk_addon as phony dist-write-files will add dist targets to the sdk_addon target, but the sdk_addon target is not declared as phony when building with mm (ONE_SHOT_MAKEFILE set), causing: build/make/core/main.mk:1495: error: writing to readonly directory: "sdk_addon" Always define sdk_addon as phony even if ONE_SHOT_MAKEFILE is set. Bug: 118144231 Test: mm Change-Id: I99d14a98a7597ebd694c765f94b0d6f4486860dc
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.