rebuild-bochs.sh: -jN configurable

git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@1052 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
hsc
2012-04-11 15:01:13 +00:00
parent f1203676c2
commit 4162930e80
2 changed files with 14 additions and 1 deletions

View File

@ -19,3 +19,12 @@ export FAIL_EXPERIMENT_HOSTS=${FAIL_EXPERIMENT_HOSTS:="bigbox.informatik.uni-erl
# A homedir-relative directory on the distribution hosts where all necessary
# Fail* ingredients reside (see multiple-clients.sh).
export FAIL_EXPERIMENT_TARGETDIR=.fail-experiment
# Number of parallel build processes. If unset, #CPUs+1.
if [ -z "$FAIL_BUILD_PARALLEL" ]; then
if [ -e /proc/cpuinfo ]; then
export FAIL_BUILD_PARALLEL=$(($(egrep -c ^processor /proc/cpuinfo)+1))
else
export FAIL_BUILD_PARALLEL=2
fi
fi

View File

@ -14,6 +14,10 @@
# - all of the previous options finally install Bochs
#
set -e
# determine absolute path of this script
SCRIPTDIR=$(readlink -f $(dirname $0))
# env variable defaults
source $SCRIPTDIR/fail-env.sh
if [ "$1" = fail -o -z "$1" ]
then
@ -27,5 +31,5 @@ fi
#export PATH=/fs/staff/hsc/bin/ccache:$PATH
# even if we only rebuilt fail, we need to link and install bochs again
nice make -j10 bochs 2>&1 | $(dirname $0)/colorize.pl 2>&1
nice make -j$FAIL_BUILD_PARALLEL bochs 2>&1 | $(dirname $0)/colorize.pl 2>&1
make bochsinstall