From 075a03f4cb0b0f2d02597b58cb3ed500b730881e Mon Sep 17 00:00:00 2001 From: Reiner Herrmann Date: Mon, 15 Jun 2015 13:47:19 +0200 Subject: reproducible openwrt: targets other than default need more detailed config --- bin/reproducible_openwrt.sh | 13 +++++++------ 1 file 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 -- cgit v1.2.3-70-g09d2