move jobs configuration to config.sh

This commit is contained in:
Dave Murphy 2017-02-01 21:16:35 +00:00
parent 590464b4e5
commit ce5d8243d4
2 changed files with 12 additions and 9 deletions

View File

@ -24,6 +24,12 @@ BUILD_DKPRO_PACKAGE=0
#---------------------------------------------------------------------------------
#BUILD_DKPRO_SRCDIR=/d/projects/archives
#---------------------------------------------------------------------------------
# MAKEFLAGS for building - use number of processors for jobs
#---------------------------------------------------------------------------------
#numcores=`getconf _NPROCESSORS_ONLN`
#MAKEFLAGS=-j$numcores
#---------------------------------------------------------------------------------
# Automated script execution
#---------------------------------------------------------------------------------
@ -31,3 +37,4 @@ BUILD_DKPRO_PACKAGE=0
# 1: Use defaults, don't pause for answers
#---------------------------------------------------------------------------------
BUILD_DKPRO_AUTOMATED=0

View File

@ -1,10 +1,6 @@
#!/bin/sh
#---------------------------------------------------------------------------------
numcores=`getconf _NPROCESSORS_ONLN`
numjobs=$(($numcores * 2 + 1))
#---------------------------------------------------------------------------------
# build and install binutils
#---------------------------------------------------------------------------------
@ -24,7 +20,7 @@ fi
if [ ! -f built-binutils ]
then
$MAKE -j$numjobs || { echo "Error building binutils"; exit 1; }
$MAKE || { echo "Error building binutils"; exit 1; }
touch built-binutils
fi
@ -74,7 +70,7 @@ fi
if [ ! -f built-gcc ]
then
$MAKE all-gcc -j$numjobs || { echo "Error building gcc stage1"; exit 1; }
$MAKE all-gcc || { echo "Error building gcc stage1"; exit 1; }
touch built-gcc
fi
@ -109,7 +105,7 @@ fi
if [ ! -f built-newlib ]
then
$MAKE -j$numjobs || { echo "Error building newlib"; exit 1; }
$MAKE || { echo "Error building newlib"; exit 1; }
touch built-newlib
fi
@ -130,7 +126,7 @@ cd $target/gcc
if [ ! -f built-stage2 ]
then
$MAKE all -j$numjobs || { echo "Error building gcc stage2"; exit 1; }
$MAKE all || { echo "Error building gcc stage2"; exit 1; }
touch built-stage2
fi
@ -166,7 +162,7 @@ fi
if [ ! -f built-gdb ]
then
$MAKE -j$numjobs || { echo "Error building gdb"; exit 1; }
$MAKE || { echo "Error building gdb"; exit 1; }
touch built-gdb
fi