diff options
author | Mark Ferrell <major@homeonderanged.org> | 2014-02-25 11:16:03 -0800 |
---|---|---|
committer | Mark Ferrell <major@homeonderanged.org> | 2014-02-25 11:16:03 -0800 |
commit | 160eaa7d75180e4c101e308005db9f16f92a68ef (patch) | |
tree | 9a8c3514508114bdccf1e575596bf2356f339f3f | |
parent | 60ed91ed99f360007fb753386a8e34ddee06d421 (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-x | build | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -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 |