commit | 6aafee69b661d03dd53d88c55b1e3ec0b377b02b | [log] [tgz] |
---|---|---|
author | Dan Willemsen <dwillemsen@google.com> | Sun Jun 10 12:48:47 2018 -0700 |
committer | Dan Willemsen <dwillemsen@google.com> | Mon Jun 11 14:52:17 2018 -0700 |
tree | 838daeca8315922299ae0fba9b858e3fd373044b | |
parent | ec5ca2cf3ed9a2d8e3641c42f0533ea8c4645e2b [diff] |
Add warnings (and errors) for implicit and suffix rules Implicit and suffix rules have potentially global effects no matter where they were defined. This doesn't work well with a large build system like Android's where all the Makefiles are loaded at once, since individual files can drastically effect other areas of the code base without even realizing it. We've had this happen with implicit rules: a workaround for one device defined an implicit rule that affected other devices, even creating rules to write into the source directory. This does not affect static pattern rules, which most existing implicit rules should be converted to. Change-Id: I192f22d8b4781cebb4479a2e95d4a2b528ef44c9
kati is an experimental GNU make clone. The main goal of this tool is to speed-up incremental build of Android.
Currently, kati does not offer a faster build by itself. It instead converts your Makefile to a ninja file.
Now AOSP has kati and ninja, so all you have to do is
% export USE_NINJA=true
All Android's build commands (m, mmm, mmma, etc.) should just work.
Set up kati:
% cd ~/src % git clone https://github.com/google/kati % cd kati % make
Build Android:
% cd <android-directory> % source build/envsetup.sh % lunch <your-choice> % ~/src/kati/m2n --kati_stats # Use --goma if you are a Googler. % ./ninja.sh
You need ninja in your $PATH.
% ./ninja.sh -t clean
Note ./ninja.sh passes all parameters to ninja.
For example, the following is equivalent to "make cts":
% ./ninja.sh cts
Or, if you know the path you want, you can do:
% ./ninja.sh out/host/linux-x86/bin/adb