projects
/
busybox-power
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
690358d
)
set MAKETHREADS from the number of cores counted
author
David Fries
<David@Fries.net>
Mon, 26 Dec 2011 22:50:20 +0000
(16:50 -0600)
committer
David Fries
<David@Fries.net>
Sat, 30 Jun 2012 03:11:35 +0000
(22:11 -0500)
build.sh
patch
|
blob
|
history
diff --git
a/build.sh
b/build.sh
index
fe71cb3
..
dd88cda
100755
(executable)
--- a/
build.sh
+++ b/
build.sh
@@
-8,7
+8,8
@@
# http://talk.maemo.org/showpost.php?p=1223814&postcount=164
BBVERSION="1.20.1"
-MAKETHREADS="8"
+MAKETHREADS=`grep -i 'processor.:' /proc/cpuinfo |wc -l`
+if [ -z "$MAKETHREADS" -o "$MAKETHREADS" -eq 0 ] ; then MAKETHREADS=1; fi
SCRIPTDIR=`dirname $(readlink -f $0)`
BUILDDIR="$SCRIPTDIR/../busybox-power-build"
VERSION_DEBIAN=`cat $SCRIPTDIR/debian/changelog | awk -F'[()]' '{if(NR==1) print $2}'`