summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReiner Herrmann <reiner@reiner-h.de>2015-06-15 13:47:19 +0200
committerHolger Levsen <holger@layer-acht.org>2015-06-15 14:13:56 +0200
commit075a03f4cb0b0f2d02597b58cb3ed500b730881e (patch)
tree0e861cebe1ac4dd1f7b13d6991e073c5f43eddb8
parent760aa7b8546362a81c1dcb9e8d1122f3cca8c909 (diff)
downloadjenkins.debian.net-075a03f4cb0b0f2d02597b58cb3ed500b730881e.tar.xz
reproducible openwrt: targets other than default need more detailed config
-rwxr-xr-xbin/reproducible_openwrt.sh13
1 files changed, 7 insertions, 6 deletions
diff --git a/bin/reproducible_openwrt.sh b/bin/reproducible_openwrt.sh
index 5e6a4e30..de0627fd 100755
--- a/bin/reproducible_openwrt.sh
+++ b/bin/reproducible_openwrt.sh
@@ -87,9 +87,9 @@ save_openwrt_results(){
}
openwrt_config() {
- TARGET=$1
+ CONFIG=$1
- echo "CONFIG_TARGET_$TARGET=y" > .config
+ printf "$CONFIG" > .config
make defconfig
}
@@ -133,7 +133,8 @@ openwrt_cleanup() {
build_two_times() {
TARGET=$1
- openwrt_config $TARGET
+ CONFIG=$2
+ openwrt_config $CONFIG
openwrt_build_toolchain
# FIRST BUILD
@@ -199,9 +200,9 @@ echo "==========================================================================
./scripts/feeds update -a
./scripts/feeds install -a
-build_two_times ar71xx_generic_ARCHERC7
-build_two_times x86_64
-build_two_times ramips_rt288x_RTN15
+build_two_times ar71xx_generic_ARCHERC7 "CONFIG_TARGET_ar71xx_generic=y\nCONFIG_TARGET_ar71xx_generic_ARCHERC7=y\n"
+build_two_times x86_64 "CONFIG_TARGET_x86=y\nCONFIG_TARGET_x86_64=y\n"
+build_two_times ramips_rt288x_RTN15 "CONFIG_TARGET_ramips=y\nCONFIG_TARGET_ramips_rt288x=y\nCONFIG_TARGET_ramips_rt288x_RTN15=y\n"
#
# create html about toolchain used