tag | 4e4531fd9739a0da0de63e95f9e46fe7c5564599 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Mon Oct 23 09:01:01 2017 -0700 |
object | 313aa04cdceb7888b94ea4f4aef86b754d5af007 |
Android 8.0.0 release 21
commit | 313aa04cdceb7888b94ea4f4aef86b754d5af007 | [log] [tgz] |
---|---|---|
author | android-build-team Robot <android-build-team-robot@google.com> | Wed May 24 07:26:56 2017 +0000 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Wed May 24 07:26:56 2017 +0000 |
tree | fd2ee906ecdba73a18687e1dc23f3e6eceb92be0 | |
parent | bc40735ee0baff37c0730b79eeaa520c589f3ad7 [diff] | |
parent | 70796b726233c69416114b511e6e89f3ec4daacc [diff] |
release-request-2fc80fb4-5a6a-4db9-97b2-5d042a5af5cf-for-git_oc-dr1-release-4038177 snap-temp-L01900000067217063 Change-Id: I409ba659ede0923cfe9cece32d763253f2419034
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