From a16e7138951e80813b6cddf546e2dde4a4892498 Mon Sep 17 00:00:00 2001 From: bryan Date: Fri, 8 Aug 2025 23:56:28 -0400 Subject: [PATCH] Use canonincal method for now --- openwrtbuilder | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/openwrtbuilder b/openwrtbuilder index 46b35eb..acc4278 100755 --- a/openwrtbuilder +++ b/openwrtbuilder @@ -626,24 +626,18 @@ from_source() { config_opts+=("CONFIG_IB=n") config_opts+=("CONFIG_MAKE_TOOLCHAIN=n") + # Serial make prep is more reliable + execute make "${make_opts[@]}" "-j1" defconfig + # Write options to config seed file for config in "${config_opts[@]}"; do debug "Writing $config to $seed_file" echo "$config" >> "$seed_file" done - # Serial make prep is more reliable execute make "${make_opts[@]}" "-j1" oldconfig - # # Re-apply custom config options after defconfig - # for config in "${config_opts[@]}"; do - # debug "Re-applying $config to $seed_file" - # echo "$config" >> "$seed_file" - # done - - # execute make "${make_opts[@]}" "-j1" oldconfig - - # make_opts+=("-j$(($(nproc)-1))") + # make_opts+=("-j$(($(nproc)-2))") ((DEBUG)) && make_opts+=("-j1") || make_opts+=("-j$(($(nproc)-2))") # Make image