commit | bbe4e11a7681c52d2197ce35ae47d4939ca246b6 | [log] [tgz] |
---|---|---|
author | Dan Willemsen <dwillemsen@google.com> | Wed Jun 12 17:13:28 2019 +0000 |
committer | Dan Willemsen <dwillemsen@google.com> | Wed Jun 12 21:35:33 2019 +0000 |
tree | feaf8675fff3c9b865195bd21efa4fec5542d4fa | |
parent | 0706faa2ac15e9c12c720f43c7bb8171c5efd97c [diff] |
Call clean-path in more places When an Android.mk specifies a local path that is outside the current directory, it uses '..', since we prepend $(LOCAL_PATH)/ to the given path. This path ('a/b/../c') gets inserted into command lines and dependencies. For dependencies, when it gets to Ninja, Ninja calls CanonicalizePath and removes those references ('a/c'), but the command line is preserved. So we've got a command line that references 'a/b', but no dependency on it. Usually that's not a big problem, but it's an issue if we're trying to only expose dependencies to the rule, like with RBE only sending the dependencies to the remote workers. So use our 'clean-path' macro to collapse the '..' references in Kati so that they don't show up in the command line either. Test: treehugger Test: build a system image with RBE Change-Id: I0706faa2ac15e9c12c720f43c7bb8171c5efd97c
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.