tag | 6c1a355d95eda46b6a0134dadcaeb183444ed929 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Tue Apr 04 10:34:06 2017 -0700 |
object | 341a2ceccb836ab23f92c0ba96d0a0e731425762 |
Android N MR2 Preview 2
commit | 341a2ceccb836ab23f92c0ba96d0a0e731425762 | [log] [tgz] |
---|---|---|
author | Dan Willemsen <dwillemsen@google.com> | Thu Feb 23 20:42:04 2017 -0800 |
committer | Dan Willemsen <dwillemsen@google.com> | Thu Feb 23 20:43:32 2017 -0800 |
tree | 490f25fb9214de750410729a2758ce8d10df5092 | |
parent | dd026a6d01375d1abebc7f5b2e69912515b52cd2 [diff] | |
parent | c76b9f146a7307cff56fc40269c030d473901b2f [diff] |
Merge remote-tracking branch 'aosp/upstream' into master * aosp/upstream: Randomize cpu affinity Be more resilient to directories disappearing during startup Pass a Loc into FindEmulator for better warnings Add --color_warnings to make warnings/errors like clang [AUTHORS] Fix kati instead of glog Add Koichi Shiraishi to AUTHORS/CONTRIBUTORS [C++] add +build ignore magic comment for go build [go] fix ldflags foramt to add '=' for -X flag [go] fix stat.Dev type to uint64 Allow rules to specify custom ninja pools Fix some possible performance issues found by clang-tidy Test: kati tests Test: multiproduct_build on aosp Change-Id: I4c427dde2bb9d1a0970e97d1e822e093bd269dfe
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