]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Added new variable DISTCC_JOBS.
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 25 Oct 2008 22:13:38 +0000 (00:13 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 25 Oct 2008 22:13:38 +0000 (00:13 +0200)
.config-default
tools/make-compilers
tools/make-constants

index fed3864af303c8cad09dbb3c44bdafd0a70b9258..fdd4f5c9c0954d1ff2dca9da688165a68c31faa8 100644 (file)
 ###############################################################################
 
 #DISTCC_PORT=3632
+#DISTCC_JOBS=4
 #DISTCC_HOSTS="localhost"
 
 ###############################################################################
index ecb00c96b6ab9fa07bb696c5fd550ac405915e83..5cbbb5d7ee12302f681063ec95891f25450bae90 100755 (executable)
@@ -57,7 +57,7 @@ distccd_start() {
                return
        fi
 
-       TOOLS_DIR=$TOOLS_DIR DISTCC_PORT=$DISTCC_PORT \
+       TOOLS_DIR=$TOOLS_DIR DISTCC_PORT=$DISTCC_PORT DISTCC_JOBS=$DISTCC_JOBS \
                LOGFILE=$BASEDIR/log_${MACHINE}/_build.00-distccd.log \
                $BASEDIR/tools/make-compilers &
        if [ "$?" -eq "0" ]; then
@@ -89,7 +89,7 @@ if [ "$(basename $0)" == "make-compilers" ]; then
        # Run distccd
        DISTCCD_PATH=$TOOLS_DIR/bin:$(echo $TOOLS_DIR/libexec/gcc/*-pc-linux-gnu/*/) \
                $TOOLS_DIR/usr/bin/distccd --daemon --allow 0.0.0.0/0 \
-               --user nobody --nice 10 --jobs 8 --port $DISTCC_PORT \
+               --user nobody --nice 10 --jobs $DISTCC_JOBS --port $DISTCC_PORT \
                --log-file $LOGFILE --stats --job-lifetime 600 \
                --stats-port $(( $DISTCC_PORT + 1 )) &>/dev/null
 
index 8fb6d3ae37310f705bcf442faf32b17272718ef3..b841e575c057a109d1b343a9c1a5e7f08fccf931 100644 (file)
@@ -60,6 +60,7 @@ PARALLELISMFLAGS=-j$(( $(grep processor < /proc/cpuinfo | wc -l) * 2 + 1 ))
 # Default distcc options
 DISTCC_HOSTS=localhost
 DISTCC_PORT=3632
+DISTCC_JOBS=4
 
 # Default hostname
 HOSTNAME=${HOSTNAME-$(hostname -f || hostname)}