tag | bcdf63a0a6cf91f9518259064dae97a1e65d777a | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Mon Dec 05 17:05:17 2016 -0800 |
object | 1b68243cf2dc9e09c9723f695431125690359417 |
Android n mr1 preview 2
commit | 1b68243cf2dc9e09c9723f695431125690359417 | [log] [tgz] |
---|---|---|
author | Dan Willemsen <dwillemsen@google.com> | Tue Oct 04 18:32:30 2016 -0700 |
committer | Dan Willemsen <dwillemsen@google.com> | Tue Oct 04 18:32:30 2016 -0700 |
tree | e6fe11d68d801382512432c92b447cfc2c78e70a | |
parent | 38315d2f21d9db622b90f307737f1e370ff9cea9 [diff] | |
parent | cb717b8ccc234b8ae318a8278f29ee075390e7c9 [diff] |
Merge remote-tracking branch 'aosp/upstream' into master * aosp/upstream: Implement the `file` function to read and write files Run regen commands sequentially Optimize RunCommand by removing /bin/sh wrapper when possible Add simple benchmark for RunCommand Support marking variables as readonly Bug: 30947985 Test: Passes upstream kati test suite, manual android testing
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