diff --git a/builder.sh b/builder.sh index 24662517ed6c2bb538a73e3e15b81de57c21df07..4ee043200ea2ffc1511d360f23ab4710f9d4191d 100755 --- a/builder.sh +++ b/builder.sh @@ -83,6 +83,9 @@ DEBUG="V=s" # (maybe define based on the branch?) PRIO=0 +# how parallel do you want to build? +J=10 + # prepare site.conf from template if [ -f site/site.conf ]; then rm site/site.conf @@ -92,6 +95,7 @@ sed -i -e "s/AUTOUPDATERBRANCH/$BRANCH/g" site/site.conf # remove old images to make sure we only upload the new shiny stuff rm -rf output/images +mkdir -p output # update toolchain to current release @@ -118,14 +122,20 @@ do echo "#######################################" echo "#######################################" + # Printing out command + # #################### + echo make clean $BROKEN GLUON_TARGET=$ARCHITECTURE $DEBUG -j${J} > output/${ARCHITECTURE}_make + echo make all $BROKEN GLUON_TARGET=$ARCHITECTURE $DEBUG -j${J} GLUON_RELEASE=${RELEASENAME} GLUON_BRANCH=$BRANCH GLUON_PRIORITY=$PRIO >> output/${ARCHITECTURE}_make # Preparing build # ############### - make clean $BROKEN GLUON_TARGET=$ARCHITECTURE $DEBUG -j24 + make clean $BROKEN GLUON_TARGET=$ARCHITECTURE $DEBUG -j${J} + echo \# make clean completed >> output/${ARCHITECTURE}_make # Doing the Build # ############### - make all $BROKEN GLUON_TARGET=$ARCHITECTURE $DEBUG -j10 GLUON_RELEASE=${RELEASENAME} GLUON_BRANCH=$BRANCH GLUON_PRIORITY=$PRIO + make all $BROKEN GLUON_TARGET=$ARCHITECTURE $DEBUG -j${J} GLUON_RELEASE=${RELEASENAME} GLUON_BRANCH=$BRANCH GLUON_PRIORITY=$PRIO + echo \# make all completed >> output/${ARCHITECTURE}_make echo Exiting with Code $? done