commit | f4f43e68207d81c2f18f9b1ffb72a22feb023e3a | [log] [tgz] |
---|---|---|
author | android-build-team Robot <android-build-team-robot@google.com> | Mon Feb 11 14:26:20 2019 -0800 |
committer | android-build-merger <android-build-merger@google.com> | Mon Feb 11 14:26:20 2019 -0800 |
tree | 091b145e4dfc528c089aacd869438ce66116d6b4 | |
parent | 17da287661100ee95f6f7b16c86afbdd78243dc5 [diff] | |
parent | a4c87794d2764b2de3d2d77a5f66fe478e907e9b [diff] |
Snap for 5180536 from 2a49513da00436f434281a98dfb118db855db013 to pi-platform-release am: a4c87794d2 Change-Id: Id21fb12120539c20cf8be00192151daacaa6fd1e
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