commit | 181207ea02e4baaad1b3cd97dfc4fcf856341c62 | [log] [tgz] |
---|---|---|
author | JP Sugarbroad <jpsugar@google.com> | Fri Sep 07 14:57:48 2018 -0700 |
committer | android-build-merger <android-build-merger@google.com> | Fri Sep 07 14:57:48 2018 -0700 |
tree | 4e2b4810cece6a3f3c44be0a0a0619bc6eb6af12 | |
parent | 7bf55111d20e2cde9f64af5c874864777b4aa057 [diff] | |
parent | 23b67dc9ed3f89a7b6cf601d61dffa15bd9e8614 [diff] |
[automerger] Support git submodules in version.cc generation. am: 3b166ce40a am: 7f45c35f91 am: 52f19a1dd5 am: d339032ec9 am: d5bc270755 am: d04a70ea7f am: 23b67dc9ed Change-Id: Ic085da4146908f6e9df35dd99121f8788d876049
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