commit | cc56cb73c98619961bd1276238da70302e9fa4d1 | [log] [tgz] |
---|---|---|
author | android-build-team Robot <android-build-team-robot@google.com> | Wed May 24 20:03:15 2017 +0000 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Wed May 24 20:03:15 2017 +0000 |
tree | fd2ee906ecdba73a18687e1dc23f3e6eceb92be0 | |
parent | 4acd8a3d1aa36e73e64717d60c9b10e9ce1f376d [diff] | |
parent | 70796b726233c69416114b511e6e89f3ec4daacc [diff] |
release-request-e81235f1-b2b4-4de1-b974-255760176f06-for-git_oc-mr1-release-4040405 snap-temp-L68200000067456736 Change-Id: I8aeb0ebe70422db8edd96158e3fb03a974deea28
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