diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-06-12 18:23:58 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-06-12 18:23:58 +0200 |
commit | 0a6cbf507fe27be56d2d645d8e336a9352395c4d (patch) | |
tree | e544274c754eef3b9770da6184a5a22424a248ef /bin | |
parent | 46c182707bbaf63f79d85e575a16fd90b95ec344 (diff) | |
download | jenkins.debian.net-0a6cbf507fe27be56d2d645d8e336a9352395c4d.tar.xz |
reproducible coreboot: refactor, introduce save_coreboot_results()
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_coreboot.sh | 37 |
1 files changed, 16 insertions, 21 deletions
diff --git a/bin/reproducible_coreboot.sh b/bin/reproducible_coreboot.sh index c8cefb8a..af480d46 100755 --- a/bin/reproducible_coreboot.sh +++ b/bin/reproducible_coreboot.sh @@ -68,6 +68,18 @@ call_debbindiff() { fi } +save_coreboot_results(){ + RUN=$1 + cd coreboot-builds + for i in * ; do + if [ -f $i/coreboot.rom ] ; then + mkdir -p $TMPDIR/$RUN/$i + cp -p $i/coreboot.rom $TMPDIR/$RUN/$i/ + fi + done +cd .. +rm coreboot-builds -r + # # main # @@ -146,18 +158,8 @@ sed -i 's#USE_XARGS=1#USE_XARGS=0#g' util/abuild/abuild nice ionice -c 3 \ bash util/abuild/abuild --payloads none || true # don't fail the full job just because some targets fail -cd coreboot-builds -for i in * ; do - # abuild and sharedutils are build results but not the results we are looking for... - if [ "$i" != "abuild" ] && [ "$i" != "sharedutils" ] ; then - mkdir -p $TMPDIR/b1/$i - if [ -f $i/coreboot.rom ] ; then - cp -p $i/coreboot.rom $TMPDIR/b1/$i/ - fi - fi -done -cd .. -rm coreboot-builds -rf +# save results in b1 +save_coreboot_results b1 echo "=============================================================================" echo "$(date -u) - Building coreboot images now - second build run." @@ -182,15 +184,8 @@ export TZ="/usr/share/zoneinfo/UTC" export PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:" umask 0022 -cd coreboot-builds -for i in * ; do - if [ -f $i/coreboot.rom ] ; then - mkdir -p $TMPDIR/b2/$i - cp -p $i/coreboot.rom $TMPDIR/b2/$i/ - fi -done -cd .. -rm coreboot-builds -r +# save results in b2 +save_coreboot_results b2 # clean up builddir to save space on tmpfs rm -r $TMPBUILDDIR/coreboot |