From c309768a5c4a0a94fdbd3842de9f454dcd32b69e Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Mon, 26 Jun 2017 21:16:17 +0200 Subject: reproducible_lede: save the different target into different files At the moment the scripts saves all targets under the same name meaning they overwrite each other. Introduce lede_target to not parse the lede_config to find out which target is now build. Signed-off-by: Holger Levsen --- bin/reproducible_lede.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'bin') diff --git a/bin/reproducible_lede.sh b/bin/reproducible_lede.sh index 5a58a3fa..95a2ae05 100755 --- a/bin/reproducible_lede.sh +++ b/bin/reproducible_lede.sh @@ -8,7 +8,8 @@ OPENWRT_GIT_REPO=https://git.lede-project.org/lede/lynxis/staging.git OPENWRT_GIT_BRANCH=master DEBUG=false -CONFIG= +LEDE_CONFIG= +LEDE_TARGET= . /srv/jenkins/bin/common-functions.sh common_init "$@" @@ -46,7 +47,8 @@ case $1 in ;; master) # master code following - CONFIG=$2 + LEDE_TARGET=$2 + LEDE_CONFIG=$3 ;; *) echo "Unsupported mode $1. Arguments are $@" @@ -69,8 +71,7 @@ cd $TMPBUILDDIR create_results_dirs lede -# FIXME: remove first argument (TARGET). The TARGET is only used in log messages -build_two_times lede "$CONFIG" "$CONFIG" +build_two_times lede "$LEDE_TARGET" "$LEDE_CONFIG" # for now we only build one architecture until it's at most reproducible #build_two_times x86_64 "CONFIG_TARGET_x86=y\nCONFIG_TARGET_x86_64=y\n" @@ -210,7 +211,7 @@ fi # finally create the webpage # cd $TMPDIR ; mkdir lede -PAGE=lede/lede.html +PAGE=lede/lede_$LEDE_TARGET.html cat > $PAGE <<- EOF @@ -249,7 +250,7 @@ rm -f $DBD_HTML $DBD_GOOD_PKGS_HTML $DBD_BAD_PKGS_HTML $TOOLCHAIN_HTML $BANNER_H # the end calculate_build_duration print_out_duration -irc_message reproducible-builds "$REPRODUCIBLE_URL/lede/ has been updated. ($GOOD_PERCENT_IMAGES% images and $GOOD_PERCENT_PACKAGES% packages reproducible)" +irc_message reproducible-builds "$REPRODUCIBLE_URL/$PAGE has been updated. ($GOOD_PERCENT_IMAGES% images and $GOOD_PERCENT_PACKAGES% packages reproducible)" echo "=============================================================================" # remove everything, we don't need it anymore... -- cgit v1.2.3-70-g09d2