bryan преди 1 година
родител
ревизия
254ca3b3ec
променени са 1 файла, в които са добавени 7 реда и са изтрити 6 реда
  1. 7 6
      openwrtbuilder

+ 7 - 6
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