From 684ad594a8e320bcf69f0bbddb0d6edf79553789 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sun, 30 Apr 2017 14:07:38 +0200 Subject: reproducible LEDE: rewrite header to reuse description from OpenWrt for LEDE too Signed-off-by: Holger Levsen --- bin/reproducible_common.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh index 4ed64147..8a62e0ad 100755 --- a/bin/reproducible_common.sh +++ b/bin/reproducible_common.sh @@ -288,10 +288,14 @@ write_page_intro() { 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 diffoscope. 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.

" local PROJECTNAME="$1" local PROJECTURL="https://review.coreboot.org/p/coreboot.git" - elif [ "$1" = "OpenWrt" ] ; then - write_page "

Reproducible OpenWrt is an effort to apply this to OpenWrt. Thus each OpenWrt target is build twice, with a few varitations added and then the resulting images and packages from the two builds are compared using diffoscope. OpenWRT generates many different types of raw .bin files, and diffoscope does not know how to parse these. Thus the resulting diffoscope output is not nearly as clear as it could be - hopefully this limitation will be overcome eventually, but in the meanwhile the input components (uImage kernel file, rootfs.tar.gz, and/or rootfs squashfs) can be inspected. Also 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.

" - local PROJECTNAME="openwrt" - local PROJECTURL="git://git.openwrt.org/openwrt.git" + elif [ "$1" = "OpenWrt" ] || [ "$1" = "LEDE" ]; then + local PROJECTNAME="$1" + if [ "$PROJECTNAME" = "OpenWrt" ] ; then + local PROJECTURL="git://git.openwrt.org/openwrt.git" + else + local PROJECTURL="git://git.lede-project.org/source.git" + fi + write_page "

Reproducible $PROJECTNAME is an effort to apply this to $PROJECTNAME. Thus each $PROJECTNAME target is build twice, with a few varitations added and then the resulting images and packages from the two builds are compared using diffoscope. $PROJECTNAME generates many different types of raw .bin files, and diffoscope does not know how to parse these. Thus the resulting diffoscope output is not nearly as clear as it could be - hopefully this limitation will be overcome eventually, but in the meanwhile the input components (uImage kernel file, rootfs.tar.gz, and/or rootfs squashfs) can be inspected. Also 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.

" elif [ "$1" = "NetBSD" ] ; then write_page "

Reproducible NetBSD is an effort to apply this to NetBSD. Thus each NetBSD target is build twice, with a few varitations added and then the resulting files from the two builds are compared using diffoscope. 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.

" local PROJECTNAME="netbsd" -- cgit v1.2.3-70-g09d2