Loading bin/reproducible_openwrt.sh +14 −0 Original line number Diff line number Diff line Loading @@ -268,6 +268,8 @@ openwrt_compile() { echo "$(date -u) - Building OpenWrt ${OPENWRT_VERSION} ($TARGET) - $RUN build run." echo "=============================================================================" ionice -c 3 $MAKE $OPTIONS openwrt_strip_metadata_signature "$PWD" } openwrt_create_signing_keys() { Loading Loading @@ -351,6 +353,18 @@ openwrt_get_banner() { echo "===bannerend===" } # OpenWrt is signing some images and appending the signature as meta data openwrt_strip_metadata_signature() { local openwrttop=$1 cd "$openwrttop" find bin/targets/ -type f | \ grep -E -v '(\.ipk|sha256sums|config.seed|kernel-debug.tar.bz2|manifest|Packages.gz|Packages|Packages.sig)$' | \ while read -r line ; do fwtool -s /dev/null -t "$line" || true done } # openwrt_build is run on a remote host # RUN - b1 or b2. b1 means first run, b2 second # TARGET - a target including subtarget. E.g. ar71xx_generic Loading Loading
bin/reproducible_openwrt.sh +14 −0 Original line number Diff line number Diff line Loading @@ -268,6 +268,8 @@ openwrt_compile() { echo "$(date -u) - Building OpenWrt ${OPENWRT_VERSION} ($TARGET) - $RUN build run." echo "=============================================================================" ionice -c 3 $MAKE $OPTIONS openwrt_strip_metadata_signature "$PWD" } openwrt_create_signing_keys() { Loading Loading @@ -351,6 +353,18 @@ openwrt_get_banner() { echo "===bannerend===" } # OpenWrt is signing some images and appending the signature as meta data openwrt_strip_metadata_signature() { local openwrttop=$1 cd "$openwrttop" find bin/targets/ -type f | \ grep -E -v '(\.ipk|sha256sums|config.seed|kernel-debug.tar.bz2|manifest|Packages.gz|Packages|Packages.sig)$' | \ while read -r line ; do fwtool -s /dev/null -t "$line" || true done } # openwrt_build is run on a remote host # RUN - b1 or b2. b1 means first run, b2 second # TARGET - a target including subtarget. E.g. ar71xx_generic Loading