diff --git a/openwrtbuilder b/openwrtbuilder index 01434b8..d4d4b41 100755 --- a/openwrtbuilder +++ b/openwrtbuilder @@ -638,15 +638,13 @@ from_source() { echo "$config" >> "$seed_file" done - execute make "${make_opts[@]}" "-j1" oldconfig - - execute make "${make_opts[@]}" "-j1" download + # execute make "${make_opts[@]}" "-j1" oldconfig # make_opts+=("-j$(($(nproc)-1))") - ((DEBUG)) && make_opts+=("-j1") || make_opts+=("-j$(($(nproc)-1))") + ((DEBUG)) && make_opts+=("-j1") || make_opts+=("-j$(($(nproc)-2))") # Make image - if ! execute ionice -c 3 chrt --idle 0 nice -n19 make "${make_opts[@]}" world; then + if ! execute ionice -c 3 chrt --idle 0 nice -n19 make "${make_opts[@]}" download world; then echo "Error: make failed" return 1 fi