commit | 29b9b7470cc33c2b7c4264f254335d788ef04c26 | [log] [tgz] |
---|---|---|
author | Stefan Becker <stefanb@gpartner-nvidia.com> | Thu Apr 07 13:29:23 2016 +0300 |
committer | Stefan Becker <stefanb@gpartner-nvidia.com> | Tue Apr 12 12:31:46 2016 +0300 |
tree | 021c5e8704caa412e83558a91b1bf8f6cc3a039e | |
parent | 167e1f750dfed276d50ad93ebf0ce0a1f6e6f9ac [diff] |
[C++] Honor "override" when setting global variable Regression when compared to GNU make behaviour. Test case: $ cat Makefile.override-failure $(info VAR: '$(VAR)') override VAR := test $(info VAR: '$(VAR)') override VAR := test-new $(info VAR: '$(VAR)') VAR := test-should-not-work $(info VAR: '$(VAR)') $ make -f Makefile.override-failure VAR: '' VAR: 'test' VAR: 'test-new' VAR: 'test-new' make: *** No targets. Stop. $ ckati -c --warn -f Makefile.override-failure VAR: '' VAR: 'test' VAR: 'test' VAR: 'test' *** No targets. Fixes https://github.com/google/kati/issues/50 Change-Id: I9c4185c30cfcf5602da7e0ac98b7e9c420788005
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