envsetup: Update mka for O

Change-Id: I36ec10be9152f135ec3645b4304e63ea30d06774
gugelfrei
Luca Stefani 7 years ago committed by Michael Bestas
parent eae93144d2
commit 74df07039a
No known key found for this signature in database
GPG Key ID: CC95044519BE6669

@ -672,20 +672,14 @@ function lineagerebase() {
}
function mka() {
local T=$(gettop)
if [ "$T" ]; then
case `uname -s` in
Darwin)
make -C $T -j `sysctl hw.ncpu|cut -d" " -f2` "$@"
;;
*)
mk_timer schedtool -B -n 10 -e ionice -n 7 make -C $T -j$(grep "^processor" /proc/cpuinfo | wc -l) "$@"
;;
esac
else
echo "Couldn't locate the top of the tree. Try setting TOP."
fi
case `uname -s` in
Darwin)
m -j "$@"
;;
*)
mk_timer schedtool -B -n 10 -e ionice -n 7 m -j "$@"
;;
esac
}
function cmka() {

Loading…
Cancel
Save