From c458bfeb2c663ba9a84acf53a919f6b450fb5277 Mon Sep 17 00:00:00 2001
From: Holger Levsen " > $ROMS_HTML
+BAD_ROMS=0
+GOOD_ROMS=0
+ALL_ROMS=0
+create_results_dirs
+cd b1
+for i in * ; do
+ let ALL_ROMS+=1
+ if [ -f $i/coreboot.rom ] ; then
+ call_debbindiff $i
+ SIZE="$(du -h -b $i/coreboot.rom | cut -f1)"
+ SIZE="$(echo $SIZE/1024|bc)"
+ if [ -f $TMPDIR/$i.html ] ; then
+ mv $TMPDIR/$i.html $BASE/coreboot/dbd/$i.html
+ echo "
" >> $ROMS_HTML
+GOOD_PERCENT=$(echo "scale=1 ; ($GOOD_ROMS*100/$ALL_ROMS)" | bc)
+BAD_PERCENT=$(echo "scale=1 ; ($BAD_ROMS*100/$ALL_ROMS)" | bc)
+
+#
+# finally create the webpage
+#
PAGE=$PWD/coreboot/coreboot.html
cat > $PAGE <<- EOF
@@ -224,45 +258,18 @@ cat > $PAGE <<- EOF
Reproducible builds enable anyone to reproduce bit by bit identical binary packages from a given source, so 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. The wiki has a lot more information, eg. why this is useful, what common issues exist and which workaround and solutions are known.
"
+write_page "
Reproducible builds enable anyone to reproduce bit by bit identical binary packages from a given source, so 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. The wiki has a lot more information, eg. why this is useful, what common issues exist and which workarounds and solutions are known.
"
write_page " Reproducible Coreboot is an effort to apply this to coreboot. Thus each coreboot.rom is build twice (without payloads), with a few varitations added and then those two ROMs are compared using debbindiff. Please note that the toolchain is not varied at all as the rebuild happens on exactly the same system. More variations are expected to be seen in the wild.
There is a monthly run jenkins job to test the master
branch of coreboot.git. Currently this job is triggered more often though, because this is still under development and brand new. The jenkins job is simply running reproducible_coreboot.sh in a Debian environemnt and this script is solely responsible for creating this page. Feel invited to join #debian-reproducible
(on irc.oftc.net) to request job runs whenever sensible. Patches and other feedback are very much appreciated!
" -echo -n "$COREBOOT" >> $PAGE -write_page "" +write_page "
$GOOD_ROMS ($GOOD_PERCENT%) out of $ALL_ROMS built coreboot images were reproducible in our test setup, while $BAD_ROMS ($BAD_PERCENT%) failed to build from source." +write_page " These tests were last run on $DATE for version ${COREBOOT_VERSION}.
" write_explaination_table coreboot -write_page "$GOOD_ROMS ($GOOD_PERCENT%) out of $ALL_ROMS built coreboot images were reproducible in our test setup, while $BAD_ROMS ($BAD_PERCENT%) failed to build from source." -write_page " These tests were last run on $DATE for version ${COREBOOT_VERSION}.
" +cat $ROMS_HTML >> $PAGE cat $TOOLCHAIN_HTML >> $PAGE -rm -f $TOOLCHAIN_HTML +rm -f $ROMS_HTML $TOOLCHAIN_HTML +write_page "" +echo -n "$COREBOOT" >> $PAGE +write_page "" write_page " " write_page_footer coreboot cd .. -- cgit v1.2.3-70-g09d2