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:
@ -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
|
# A homedir-relative directory on the distribution hosts where all necessary
|
||||||
# Fail* ingredients reside (see multiple-clients.sh).
|
# Fail* ingredients reside (see multiple-clients.sh).
|
||||||
export FAIL_EXPERIMENT_TARGETDIR=.fail-experiment
|
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
|
||||||
|
|||||||
@ -14,6 +14,10 @@
|
|||||||
# - all of the previous options finally install Bochs
|
# - all of the previous options finally install Bochs
|
||||||
#
|
#
|
||||||
set -e
|
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" ]
|
if [ "$1" = fail -o -z "$1" ]
|
||||||
then
|
then
|
||||||
@ -27,5 +31,5 @@ fi
|
|||||||
#export PATH=/fs/staff/hsc/bin/ccache:$PATH
|
#export PATH=/fs/staff/hsc/bin/ccache:$PATH
|
||||||
|
|
||||||
# even if we only rebuilt fail, we need to link and install bochs again
|
# 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
|
make bochsinstall
|
||||||
|
|||||||
Reference in New Issue
Block a user