commit | d43c7bfcf9e74b92b8a191d84e58ab25c3269735 | [log] [tgz] |
---|---|---|
author | Bill Yi <byi@google.com> | Wed Oct 24 10:05:42 2018 -0700 |
committer | android-build-merger <android-build-merger@google.com> | Wed Oct 24 10:05:42 2018 -0700 |
tree | 7681c816bc40f1117905bd34ec0730d9afccbee1 | |
parent | 0b52a5530e93e0736e7126fe376840444de290cf [diff] | |
parent | fa4ddf57d478e079882d78fa64a2bee02038789c [diff] |
[automerger skipped] Merge pi-platform-release to stage-aosp-master - DO NOT MERGE am: fa4ddf57d4 -s ours Change-Id: Id261bc668a7fb3230d8c67e6fd561cd7e9c6f9db
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