commit | 158867849c8a55d1db95ead7cbeca4aacd47350f | [log] [tgz] |
---|---|---|
author | Shinichiro Hamaji <hamaji@google.com> | Tue Mar 15 08:39:18 2016 +0900 |
committer | Shinichiro Hamaji <hamaji@google.com> | Tue Mar 15 08:40:02 2016 +0900 |
tree | aaf2fe12375fec89b7e5bf347ab71033efe12a02 | |
parent | 3864aca0ebfd7ad63e74eef654ae70ac71ce0c5d [diff] | |
parent | 044a51d57c9db8d3aad5f1ee43f6c6d601dbfdbc [diff] |
Merge remote-tracking branch 'aosp/upstream' This fixes three bugs and disables the depfile detection. The depfile detection is not necessary anymore as we use .KATI_DEPFILE explicitly. b3d01c4 Merge remote-tracking branch 'aosp/upstream' into merge20 044a51d Fix https://github.com/google/kati/issues/47 c3a4834 Use subshell even when a command starts with '(' f3ad9e0 Detect depfiles only when --detect_depfiles is specified e6a4d17 Fix https://github.com/google/kati/issues/46 Change-Id: I82252a6d2fd77e095866e7b0820e04268555c78c
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