commit | eed8b29ec7513292e77b739e1b2e465979933352 | [log] [tgz] |
---|---|---|
author | Dan Willemsen <dwillemsen@google.com> | Sat Jun 16 12:35:56 2018 -0700 |
committer | android-build-merger <android-build-merger@google.com> | Sat Jun 16 12:35:56 2018 -0700 |
tree | 5a56f20b2563942003101085abc5746db2c8fea3 | |
parent | a662c862d4a7129ca0e333b5778c4701b5ba445c [diff] | |
parent | a18832655274e4e66e821ba9f0a29fa82b1f5a38 [diff] |
Merge remote-tracking branch 'aosp/upstream' am: a188326552 Change-Id: I79eca879a3fd01bce3c42e4c269c2e6b8e65bd57
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