diff options
author | Chirayu Desai <chirayudesai1@gmail.com> | 2012-09-28 11:56:02 +0530 |
---|---|---|
committer | Adnan Begovic <adnan@cyngn.com> | 2015-10-06 17:58:53 -0700 |
commit | cf2bdb62ffb3db1abb7d2fa8e01e1dd2e528ba05 (patch) | |
tree | ce881316a194beb06fc78d00b0f182fe11a4f267 /envsetup.sh | |
parent | 1822ad071d806db7f11620b562dd5fa854fa1a65 (diff) | |
download | build-cf2bdb62ffb3db1abb7d2fa8e01e1dd2e528ba05.zip build-cf2bdb62ffb3db1abb7d2fa8e01e1dd2e528ba05.tar.gz build-cf2bdb62ffb3db1abb7d2fa8e01e1dd2e528ba05.tar.bz2 |
envsetup: new function cmka
- The build system adds a clean-<module> target
for each module / package.
- This utilizes that and cleans and builds using mka.
- If no argument is supplied, it runs "mka clean".
- If argument is (bacon|otapackage|systemimage), it
runs installclean.
Change-Id: I582ac2f92df3278c41c254c73e9c02ad7f406851
(cherry picked from commit eb74c2f2b9bb708e77edfdbb8ba0d0b716fef2fc)
(Also sneak in another minor change, a help entry for mkap)
Diffstat (limited to 'envsetup.sh')
-rw-r--r-- | envsetup.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/envsetup.sh b/envsetup.sh index 2796340..db0ab18 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -27,6 +27,8 @@ Invoke ". build/envsetup.sh" from your shell to add the following functions to y - aospremote: Add git remote for matching AOSP repository - cafremote: Add git remote for matching CodeAurora repository. - mka: Builds using SCHED_BATCH on all processors +- mkap: Builds the module(s) using mka and pushes them to the device. +- cmka: Cleans and builds using mka. - reposync: Parallel repo sync using ionice and SCHED_BATCH - repopick: Utility to fetch changes from Gerrit. - installboot: Installs a boot.img to the connected device. @@ -1995,6 +1997,26 @@ function mka() { esac } +function cmka() { + if [ ! -z "$1" ]; then + for i in "$@"; do + case $i in + bacon|otapackage|systemimage) + mka installclean + mka $i + ;; + *) + mka clean-$i + mka $i + ;; + esac + done + else + mka clean + mka + fi +} + function reposync() { case `uname -s` in Darwin) |