diff --git a/openwrtbuilder b/openwrtbuilder index 46c1fa2..73f2487 100755 --- a/openwrtbuilder +++ b/openwrtbuilder @@ -652,12 +652,6 @@ fromSource() { config_opts+=("CONFIG_IB=n") config_opts+=("CONFIG_MAKE_TOOLCHAIN=n") - # Write options to config seed file - for opt in "${config_opts[@]}"; do - debug "Writing $opt to $seed_file" - echo "$opt" >> "$seed_file" - done - # Cleaning modes # make clean # compiled output # make targetclean # compiled output, toolchain @@ -667,6 +661,13 @@ fromSource() { # Make image (( DEBUG )) && make_opts+=("V=s") execute make "${make_opts[@]}" defconfig + + # Write options to config seed file + for opt in "${config_opts[@]}"; do + debug "Writing $opt to $seed_file" + echo "$opt" >> "$seed_file" + done + execute make "${make_opts[@]}" dirclean execute make "${make_opts[@]}" download #execute make -f Makefile.aperl inst_perl MAP_TARGET=perl