commit | 07da72e4abf7674a69601263dc7b9351a2871a0a | [log] [tgz] |
---|---|---|
author | Shinichiro Hamaji <hamaji@google.com> | Thu Nov 26 15:25:17 2015 +0900 |
committer | Shinichiro Hamaji <hamaji@google.com> | Thu Nov 26 15:27:04 2015 +0900 |
tree | cd1df12d6b84f77b46d948ec834981afd146c234 | |
parent | 1e45afde9a4439a028b3733f92bc08c449a31a30 [diff] | |
parent | 1ce0d14fddc10956d781193981d58286d25e3af2 [diff] |
Merge remote-tracking branch 'aosp/upstream' Mainly for 1ce0d14 which revives local_pool for goma build. 1ce0d14 Set local_pool after a command with gomacc is found 189ce7e [C++] Do not crash when .kati_stamp is missing 433ad99 [C++] Add a warning for undefined user functions 82e2009 [C++] Warn about weird expressions bbe5548 [C++] Add a fast path for $(eval) which starts with # 644d6b9 [C++] Add --warn flag which produces extra warnings Change-Id: I92da0eed7ed293013739e60eb5b4cf9815ff637d
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