From bed209adff9400e428affac4005c87eef8665aae Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Tue, 9 Jun 2015 00:02:49 +0200 Subject: reproducible coreboot: abort the job if no cross compilers could be build at all. fix typos related to html output --- bin/reproducible_coreboot.sh | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'bin/reproducible_coreboot.sh') diff --git a/bin/reproducible_coreboot.sh b/bin/reproducible_coreboot.sh index ae0db236..8440ea4e 100755 --- a/bin/reproducible_coreboot.sh +++ b/bin/reproducible_coreboot.sh @@ -90,9 +90,21 @@ COREBOOT_VERSION=$(git describe) echo "=============================================================================" echo "$(date -u) - Building cross compilers for ${ARCHS} now." echo "=============================================================================" -for ARCH in ${ARCHS} ; do - nice ionice -c 3 make crossgcc-$ARCH || true # don't fail the full job just because some targets fail + +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 + RESULT=$? + if [ $RESULT -eq 0 ] ; then + GOT_XTOOLCHAIN=true + fi done +set -e +if ! $GOT_XTOOLCHAIN ; then + echo "Need at least one cross toolchain, aborting." +fi echo "=============================================================================" echo "$(date -u) - Building coreboot ${COREBOOT_VERSION} images now - first build run." @@ -181,10 +193,10 @@ cat > $PAGE <<- EOF EOF write_page "

Reproducible Coreboot

" write_page "

Reproducible builds enable anyone to reproduce bit by bit identical binary packages from a given source, si that anyone can verify that a given binary derived from the source it was said to be derived. There is a lot more information about reproducible builds on the Debian wiki and on https://reproducible.debian.net.
" -write_page " Reproducible Coreboot is an effort to apply this to coreboot. Thus each coreboot.rom is build twice, with a few varitations added and then those two ROMs are compared using debbindiff. Please note that more variations are to be expected in the wild.t

" +write_page " Reproducible Coreboot is an effort to apply this to coreboot. Thus each coreboot.rom is build twice, with a few varitations added and then those two ROMs are compared using debbindiff. Please note that more variations are to be expected in the wild.

" write_page "

This set up to test the master branch of coreboot.git monthly, but as this is brand new, currently updates are triggered more often. Patches are very much welcome, the coreboot pages are solely generated by reproducible_coreboot.sh.

" write_page "

These tests were last run on $DATE for version ${COREBOOT_VERSION}.

" -echo -n $COREBOOT >> $PAGE +echo -n "$COREBOOT" >> $PAGE write_page "

" write_explaination_table coreboot write_page "