tag | 136ea06adb1c623b87e31fc31aafa1c95d049870 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Tue Aug 14 13:22:18 2018 -0700 |
object | a18832655274e4e66e821ba9f0a29fa82b1f5a38 |
Android N IOT Release 2 (NIT1.180611.010.B1)
commit | a18832655274e4e66e821ba9f0a29fa82b1f5a38 | [log] [tgz] |
---|---|---|
author | Dan Willemsen <dwillemsen@google.com> | Sat Jun 16 10:38:31 2018 -0700 |
committer | Dan Willemsen <dwillemsen@google.com> | Sat Jun 16 10:38:31 2018 -0700 |
tree | 5a56f20b2563942003101085abc5746db2c8fea3 | |
parent | 5a0d442ee5b76fd39b67bd59360da75c89eef9a7 [diff] | |
parent | ae6ffaa32148a1153beccabd77f9a97ebb367937 [diff] |
Merge remote-tracking branch 'aosp/upstream' * aosp/upstream: Fix bug around empty targets in static pattern rules Test: upstream kati tests Test: build-aosp_dragon.ninja is identical with built kati Change-Id: I8a0ea2583ac935cfef38469ee12d9b9fe4cfff61
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