commit | 1e45afde9a4439a028b3733f92bc08c449a31a30 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Thu Nov 12 17:38:13 2015 -0800 |
committer | Colin Cross <ccross@android.com> | Thu Nov 12 17:38:51 2015 -0800 |
tree | 3d03862f08b132b3f202023c2a8bed7b9e2776c2 | |
parent | d72dd1e220c4bcd69579590c49ef345de3766bda [diff] | |
parent | a84e670c9b2d9d8123c1f8fd06d1df890db291a4 [diff] |
Merge remote-tracking branch 'aosp/upstream' a84e670c9b2d Merge pull request #37 from colincross/no_ignore_dirty f23ae8caf11b Add --no_ignore_dirty flag 40307068f60d Merge pull request #36 from colincross/env 27df5311c5ea [C++] separate ninja shell script into two 4e3b421f1362 [C++] Remove gen_all_phony_targets flag b67a299ca5eb [C++] Fix a CHECK failure 7d261aa20217 Fix a misuse of "dependent" in INTERNALS.md d573ec6f826d Fix typos and do some cosmetic changes for INTERNALS.md 40127c2af7d4 Add the first version of INTERNALS.md 9f127b26c74a [C++] Show the number of interned strings with --kati_stats 748969f39dfb [C++] Do not trim trailing spaces in variable assignments 760f959ba462 Add two testcases for previous change d236eb03fbed [C++] Let ifdef allow trailing spaces in a variable name Change-Id: If465fd656fd03477cf5c21bb2ddb9c0c9148377d
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