summaryrefslogtreecommitdiffstats
path: root/envsetup.sh
diff options
context:
space:
mode:
authorWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2016-01-14 15:26:33 +0100
committerWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2016-01-14 15:26:33 +0100
commitb37e87a3829decbb129c01efee8685f8d2ef2c15 (patch)
tree70cb80c3520941cae6068d2a4908d1c39bdd90c2 /envsetup.sh
parent0ebb493dfd1aa293b9a1fc2f58f47c1e5dc2cf8f (diff)
parent420da62d60b3197f6c7e57609beea915e4110092 (diff)
downloadbuild-b37e87a3829decbb129c01efee8685f8d2ef2c15.zip
build-b37e87a3829decbb129c01efee8685f8d2ef2c15.tar.gz
build-b37e87a3829decbb129c01efee8685f8d2ef2c15.tar.bz2
Merge branch 'cm-13.0' of https://github.com/CyanogenMod/android_build into replicant-6.0-toolchain
Diffstat (limited to 'envsetup.sh')
-rw-r--r--envsetup.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/envsetup.sh b/envsetup.sh
index 8da5173..8a97863 100644
--- a/envsetup.sh
+++ b/envsetup.sh
@@ -13,6 +13,8 @@ Invoke ". build/envsetup.sh" from your shell to add the following functions to y
- mmp: Builds all of the modules in the current directory and pushes them to the device.
- mmmp: Builds all of the modules in the supplied directories and pushes them to the device.
- mmma: Builds all of the modules in the supplied directories, and their dependencies.
+- mms: Short circuit builder. Quickly re-build the kernel, rootfs, boot and system images
+ without deep dependencies. Requires the full build to have run before.
- cgrep: Greps on all local C/C++ files.
- ggrep: Greps on all local Gradle files.
- jgrep: Greps on all local Java files.
@@ -2129,6 +2131,30 @@ function cmka() {
fi
}
+function mms() {
+ local T=$(gettop)
+ if [ -z "$T" ]
+ then
+ echo "Couldn't locate the top of the tree. Try setting TOP."
+ return 1
+ fi
+
+ case `uname -s` in
+ Darwin)
+ local NUM_CPUS=$(sysctl hw.ncpu|cut -d" " -f2)
+ ONE_SHOT_MAKEFILE="__none__" \
+ make -C $T -j $NUM_CPUS "$@"
+ ;;
+ *)
+ local NUM_CPUS=$(cat /proc/cpuinfo | grep "^processor" | wc -l)
+ ONE_SHOT_MAKEFILE="__none__" \
+ mk_timer schedtool -B -n 1 -e ionice -n 1 \
+ make -C $T -j $NUM_CPUS "$@"
+ ;;
+ esac
+}
+
+
function repolastsync() {
RLSPATH="$ANDROID_BUILD_TOP/.repo/.repo_fetchtimes.json"
RLSLOCAL=$(date -d "$(stat -c %z $RLSPATH)" +"%e %b %Y, %T %Z")