tag | 81e9ad618b6a6c060173ed9c7aa6d9dcedaabaca | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Tue Aug 02 09:36:55 2016 -0700 |
object | fa3234cabaa3a7350cebc04d9b5948d7d1d1dcfa |
Android N Preview 5 (NPD90G)
commit | fa3234cabaa3a7350cebc04d9b5948d7d1d1dcfa | [log] [tgz] |
---|---|---|
author | Dan Willemsen <dwillemsen@google.com> | Mon Jul 11 15:25:45 2016 -0700 |
committer | Dan Willemsen <dwillemsen@google.com> | Mon Jul 11 15:40:36 2016 -0700 |
tree | d371f6416e5e900565699a4d3bc4daea641cc27a | |
parent | ff2d59e2e082d17ae04f43d409244440a1687856 [diff] | |
parent | d26caadec345d7f19d63f894a0b8320693543ea6 [diff] |
Merge remote-tracking branch 'aosp/upstream' * aosp/upstream: [C++] Remove code only for non-SSE environment [C++] Do not use STTNI when string length is <16 [C++] Fix strutil_test for non-SSE build [C++] Fix a typo in PR#48 Add unit tests for invalid string accesses [C++] Allow targets which start with `='. Add Po Hu to AUTHORS/CONTRIBUTORS Add testcases for commandline variables [C++] A follow-up for the previous change [C++] Allow pass command line variables from make to ckati [C++] Allow command line variables to override file variables [C++] Do not evaluate recursive variable in ifdef [C++] Fix handling CRLF after a backslash [C++] Fix $(join) for #76 [C++] $(eval) stops when first character is '#' Change-Id: I32f5359442b66e1627e3cfdba1ad1e7fd9c32abd
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