diff options
author | Alexander Couzens <lynxis@fe80.eu> | 2017-06-26 21:16:17 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2017-06-26 21:24:28 +0200 |
commit | c309768a5c4a0a94fdbd3842de9f454dcd32b69e (patch) | |
tree | e50dc7d94f75ca0be13859f8aec7479407c93705 /bin | |
parent | e7ff96c3d882043369e0af5e734ec3ceb5c4562e (diff) | |
download | jenkins.debian.net-c309768a5c4a0a94fdbd3842de9f454dcd32b69e.tar.xz |
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 <holger@layer-acht.org>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_lede.sh | 13 |
1 files changed, 7 insertions, 6 deletions
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 <!DOCTYPE html> <html lang="en-US"> @@ -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... |