commit | 5cba87b4b0dfd14374ea31f94d3730c9af1e5e55 | [log] [tgz] |
---|---|---|
author | Shinichiro Hamaji <hamaji@google.com> | Mon Dec 07 12:52:38 2015 +0900 |
committer | Shinichiro Hamaji <hamaji@google.com> | Mon Dec 07 12:54:23 2015 +0900 |
tree | b7c0bf7cc72e67f7c0c3a9dc662dd6821ea27f67 | |
parent | 07da72e4abf7674a69601263dc7b9351a2871a0a [diff] | |
parent | 42ce87c381f6990db9c7ca525d51ff21c052a98d [diff] |
Merge remote-tracking branch 'aosp/upstream' Mainly for 9dce444 also add a few warnings for unsupported features. 42ce87c [C++] Do not fail by $(shell) in functions for now 9dce444 [C++] Never specify non-positive -j value b8517f7 Add implicit_pattern_rule_chain2.mk 28da237 [C++] Explicitly disallow $(shell) in other make constructs 77be80d [C++] Warn about unsupported builtin targets cbe9f49 [C++] Add a minimal support for .SUFFIXES 3de9ae0 Add delete_on_error.mk Change-Id: Ia19d8d5f8e5bfb22627aaaa7ed7c461f47b34733
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