mka: change how make is called
in some environments make -j N xxx results in compiling target 'N' instead of 'xxx'
make -jN xxx will always make 'xxx' with N number of threads
Signed-off-by: Arnav Gupta <championswimmer@gmail.com>
Change-Id: I77f17c9286a5ef1d61163d8f978900fb4c24e2e7
diff --git a/envsetup.sh b/envsetup.sh
index 8b717ab..31fd271 100644
--- a/envsetup.sh
+++ b/envsetup.sh
@@ -1954,7 +1954,7 @@
make -j `sysctl hw.ncpu|cut -d" " -f2` "$@"
;;
*)
- schedtool -B -n 1 -e ionice -n 1 make -j `cat /proc/cpuinfo | grep "^processor" | wc -l` "$@"
+ schedtool -B -n 1 -e ionice -n 1 make -j$(cat /proc/cpuinfo | grep "^processor" | wc -l) "$@"
;;
esac
}