aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Ferrell <major@homeonderanged.org>2014-02-25 11:16:03 -0800
committerMark Ferrell <major@homeonderanged.org>2014-02-25 11:16:03 -0800
commit160eaa7d75180e4c101e308005db9f16f92a68ef (patch)
tree9a8c3514508114bdccf1e575596bf2356f339f3f
parent60ed91ed99f360007fb753386a8e34ddee06d421 (diff)
Do not attempt to detect the # of CPU's
* Detecting the number of CPU's is fairly OS specific, which is a bad road to travel. More importantly though, MAKE_OPTS can simply be set in the environ by the user for a given system, so automatically setting it gains little outside of adding unecessary buzzword-compliance.
-rwxr-xr-xbuild8
1 files changed, 2 insertions, 6 deletions
diff --git a/build b/build
index b1f279a..cd5b932 100755
--- a/build
+++ b/build
@@ -265,12 +265,8 @@ fi
export TARGET
export SYSROOT
-# If the MAKE_OPTS are not set then find the number of CPU's and set them.
-if [ -z "${MAKE_OPTS}" ]; then
- NUM_CPUS="$(awk '/^processor/{print$3}'< /proc/cpuinfo|sort|uniq|tail -n 1)"
- NUM_CPUS="$((${NUM_CPUS} + 1))"
- MAKE_OPTS="-j$((${NUM_CPUS} + 1))"
-fi
+# Set MAKE_OPTS if not already set
+MAKE_OPTS="${MAKE_OPTS:--j2}"
export MAKE_OPTS
# Available to be set in the config