[Qa-jenkins-scm] [jenkins.debian.net] 04/05: reproducible coreboot: test whether the cross toolchain can be build in parallel now

Holger Levsen holger at moszumanska.debian.org
Tue Jun 9 08:56:30 UTC 2015


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit 4fa378c54cb9984e8186e72073fa1b048dddef85
Author: Holger Levsen <holger at layer-acht.org>
Date:   Tue Jun 9 00:48:24 2015 +0200

    reproducible coreboot: test whether the cross toolchain can be build in parallel now
---
 bin/reproducible_coreboot.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/reproducible_coreboot.sh b/bin/reproducible_coreboot.sh
index 8440ea4..f238fef 100755
--- a/bin/reproducible_coreboot.sh
+++ b/bin/reproducible_coreboot.sh
@@ -86,6 +86,7 @@ cd coreboot
 git submodule update --init --checkout 3rdparty/blobs
 COREBOOT="$(git log -1)"
 COREBOOT_VERSION=$(git describe)
+NUM_CPU=$(cat /proc/cpuinfo |grep '^processor'|wc -l)
 
 echo "============================================================================="
 echo "$(date -u) - Building cross compilers for ${ARCHS} now."
@@ -95,7 +96,7 @@ GOT_XTOOLCHAIN=false
 set +e
 for ARCH in ${ARCHS} ; do
 	echo "$(date -u) - Building cross compiler for ${ARCH}."
-	nice ionice -c 3 make crossgcc-$ARCH
+	nice ionice -c 3 make -j $NUM_CPU crossgcc-$ARCH
 	RESULT=$?
 	if [ $RESULT -eq 0 ] ; then
 		GOT_XTOOLCHAIN=true
@@ -113,7 +114,6 @@ export TZ="/usr/share/zoneinfo/Etc/GMT+12"
 # prevent failing using more than one CPU
 sed -i 's#MAKE=$i#MAKE=make#' util/abuild/abuild
 # use all cores for first build
-NUM_CPU=$(cat /proc/cpuinfo |grep '^processor'|wc -l)
 sed -i "s#cpus=1#cpus=$NUM_CPU#" util/abuild/abuild
 sed -i 's#USE_XARGS=1#USE_XARGS=0#g' util/abuild/abuild
 # actually build everything

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list