commit | 167e1f750dfed276d50ad93ebf0ce0a1f6e6f9ac | [log] [tgz] |
---|---|---|
author | Stefan Becker <stefanb@gpartner-nvidia.com> | Thu Apr 07 13:29:03 2016 +0300 |
committer | Stefan Becker <stefanb@gpartner-nvidia.com> | Tue Apr 12 12:31:46 2016 +0300 |
tree | c8678f46a282ecb07209e4e4c1275106a2b1af30 | |
parent | 187bf08e7fc847da6dc8482383fa5c8364f0ac50 [diff] |
[C++] Ignore white space around $(call) function name Regression when compared to GNU make behaviour. Test case: $ cat Makefile.call-func-name func = $(info called with '$(1)') test = $(call $(1),$(1)) $(call test,func) $(call test, func) $(call test,func ) $(call test, func ) $ make -f Makefile.call-func-name called with 'func' called with ' func' called with 'func ' called with ' func ' make: *** No targets. Stop. $ ckati -c --warn -f Makefile.call-func-name called with 'func' Makefile.call-func-name:5: *warning*: undefined user function: func Makefile.call-func-name:6: *warning*: undefined user function: func Makefile.call-func-name:5: *warning*: undefined user function: func *** No targets. Fixes https://github.com/google/kati/issues/49 Change-Id: I3d982cd8d6d9777034df64540c32846300cb72f2
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