aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/rebuild.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/rebuild.sh')
-rw-r--r--scripts/rebuild.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/rebuild.sh b/scripts/rebuild.sh
index eba3e8a6..5362f09b 100644
--- a/scripts/rebuild.sh
+++ b/scripts/rebuild.sh
@@ -14,12 +14,15 @@ if [ ! -e $JAVA_HOME ] ; then
exit 1
fi
+CPU_COUNT=`getconf _NPROCESSORS_ONLN`
+
buildit() {
echo rootdir $rootdir
echo logfile $logfile
+ echo CPU_COUNT $CPU_COUNT
cd $rootdir/build-$archabi
- make install test
+ make -j $CPU_COUNT install test
if [ $? -eq 0 ] ; then
echo "REBUILD SUCCESS $bname $archabi"
cp -a examples/* $rootdir/dist-$archabi/bin