commit | cdc359b7f79831b624dea20c0724d4e6453ed7ca | [log] [tgz] |
---|---|---|
author | Sasha Smundak <asmundak@google.com> | Tue Jul 31 16:21:36 2018 -0700 |
committer | Sasha Smundak <asmundak@google.com> | Tue Jul 31 16:21:36 2018 -0700 |
tree | de55f0ca29e902be9f347671a732833278dd130e | |
parent | a18832655274e4e66e821ba9f0a29fa82b1f5a38 [diff] | |
parent | 2b211cf0da0d7485d8e83604a2a5f6ec3371cf7a [diff] |
Merge remote-tracking branch 'aosp/upstream' into mymerge * aosp/upstream: Do not rewrite dependencies on implicit outputs to be the primary output Test: make test Change-Id: I787cc8f5c39902cebb257ad7dab0fe0ff608aa9c
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