From 9432849adfc4c466a55d80a60a96f5b111f8af4c Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 12 Jun 2015 16:53:28 +0200 Subject: reproducible openwrt: install toolchain. cleanup properly between builds. call make it single steps again --- bin/reproducible_openwrt.sh | 75 +++++++++++++++++++++++---------------------- 1 file changed, 39 insertions(+), 36 deletions(-) (limited to 'bin/reproducible_openwrt.sh') diff --git a/bin/reproducible_openwrt.sh b/bin/reproducible_openwrt.sh index b5d847f8..c10879b1 100755 --- a/bin/reproducible_openwrt.sh +++ b/bin/reproducible_openwrt.sh @@ -91,27 +91,30 @@ echo "========================================================================== echo "$(date -u) - Building the toolchain now." echo "=============================================================================" make defconfig -make -j $NUM_CPU tools/install +nice ionice -c 3 \ + make -j $NUM_CPU tools/install +nice ionice -c 3 \ + make -j $NUM_CPU toolchain/install echo "=============================================================================" echo "$(date -u) - Building openwrt ${OPENWRT_VERSION} images now - first build run." echo "=============================================================================" export TZ="/usr/share/zoneinfo/Etc/GMT+12" # actually build everything -nice ionice -c 3 \ - make -#nice ionice -c 3 \ -# make target/compile -#nice ionice -c 3 \ -# make -j $NUM_CPU package/cleanup #nice ionice -c 3 \ -# make -j $NUM_CPU package/compile -#nice ionice -c 3 \ -# make -j $NUM_CPU package/install -#nice ionice -c 3 \ -# make -j $NUM_CPU target/install -#nice ionice -c 3 \ -# make -j $NUM_CPU package/index +# make +nice ionice -c 3 \ + make target/compile +nice ionice -c 3 \ + make -j $NUM_CPU package/cleanup +nice ionice -c 3 \ + make -j $NUM_CPU package/compile +nice ionice -c 3 \ + make -j $NUM_CPU package/install +nice ionice -c 3 \ + make -j $NUM_CPU target/install +nice ionice -c 3 \ + make -j $NUM_CPU package/index cd bin for i in * ; do @@ -128,8 +131,8 @@ rm bin -r # # clean up between builds # -rm staging_dir -r -rm target -r +rm build_dir/target-* -r +rm taging_dir/target-* -r echo "=============================================================================" echo "$(date -u) - Building openwrt images now - second build run." @@ -142,27 +145,27 @@ export CAPTURE_ENVIRONMENT="I capture the environment" umask 0002 # use allmost all cores for second build NEW_NUM_CPU=$(echo $NUM_CPU-1|bc) -nice ionice -c 3 \ - linux64 --uname-2.6 \ - make -#nice ionice -c 3 \ -# linux64 --uname-2.6 \ -# make target/compile -#nice ionice -c 3 \ -# linux64 --uname-2.6 \ -# make -j $NEW_NUM_CPU package/cleanup -#nice ionice -c 3 \ -# linux64 --uname-2.6 \ -# make -j $NEW_NUM_CPU package/compile -#nice ionice -c 3 \ -# linux64 --uname-2.6 \ -# make -j $NEW_NUM_CPU package/install #nice ionice -c 3 \ # linux64 --uname-2.6 \ -# make -j $NEW_NUM_CPU target/install -#nice ionice -c 3 \ -# linux64 --uname-2.6 \ -# make -j $NEW_NUM_CPU package/index +# make +nice ionice -c 3 \ + linux64 --uname-2.6 \ + make target/compile +nice ionice -c 3 \ + linux64 --uname-2.6 \ + make -j $NEW_NUM_CPU package/cleanup +nice ionice -c 3 \ + linux64 --uname-2.6 \ + make -j $NEW_NUM_CPU package/compile +nice ionice -c 3 \ + linux64 --uname-2.6 \ + make -j $NEW_NUM_CPU package/install +nice ionice -c 3 \ + linux64 --uname-2.6 \ + make -j $NEW_NUM_CPU target/install +nice ionice -c 3 \ + linux64 --uname-2.6 \ + make -j $NEW_NUM_CPU package/index # reset environment to default values again export LANG="en_GB.UTF-8" @@ -273,7 +276,7 @@ write_page " Reproducible OpenWRT is an effort to apply this to write_page "

There is a monthly run jenkins job to test the master branch of openwrt.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_openwrt.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!

" write_page "

$GOOD_IMAGES ($GOOD_PERCENT%) out of $ALL_IMAGES built openwrt images were reproducible in our test setup." write_page " These tests were last run on $DATE for version ${OPENWRT_VERSION}.

" -write_explaination_table openwrt +write_explaination_table OpenWRT cat $IMAGES_HTML >> $PAGE write_page "

"
 echo -n "$OPENWRT" >> $PAGE
-- 
cgit v1.2.3-70-g09d2