diff options
author | Arnav Gupta <championswimmer@gmail.com> | 2012-11-23 10:47:44 -0700 |
---|---|---|
committer | Adnan Begovic <adnan@cyngn.com> | 2015-10-06 16:12:07 -0700 |
commit | 3b90994fae30df4ed40d12d2cb55e63ed9e4cde8 (patch) | |
tree | d384464f6336f3a898c1a6d42d16daba5eebaf06 /envsetup.sh | |
parent | d5c0c8724f394bdde2409fdce6a231861e2940a7 (diff) | |
download | build-3b90994fae30df4ed40d12d2cb55e63ed9e4cde8.zip build-3b90994fae30df4ed40d12d2cb55e63ed9e4cde8.tar.gz build-3b90994fae30df4ed40d12d2cb55e63ed9e4cde8.tar.bz2 |
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
Diffstat (limited to 'envsetup.sh')
-rw-r--r-- | envsetup.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/envsetup.sh b/envsetup.sh index 8b717ab..31fd271 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -1954,7 +1954,7 @@ function mka() { 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 } |