envsetup: Update mka for O
Change-Id: I36ec10be9152f135ec3645b4304e63ea30d06774
This commit is contained in:
parent
eae93144d2
commit
74df07039a
1 changed files with 8 additions and 14 deletions
|
@ -672,20 +672,14 @@ function lineagerebase() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function mka() {
|
function mka() {
|
||||||
local T=$(gettop)
|
|
||||||
if [ "$T" ]; then
|
|
||||||
case `uname -s` in
|
case `uname -s` in
|
||||||
Darwin)
|
Darwin)
|
||||||
make -C $T -j `sysctl hw.ncpu|cut -d" " -f2` "$@"
|
m -j "$@"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
mk_timer schedtool -B -n 10 -e ionice -n 7 make -C $T -j$(grep "^processor" /proc/cpuinfo | wc -l) "$@"
|
mk_timer schedtool -B -n 10 -e ionice -n 7 m -j "$@"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
else
|
|
||||||
echo "Couldn't locate the top of the tree. Try setting TOP."
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function cmka() {
|
function cmka() {
|
||||||
|
|
Loading…
Reference in a new issue