From e3ce0b6e572c93ef56f39fea1af51a6ead21c983 Mon Sep 17 00:00:00 2001 From: bryan Date: Fri, 8 Aug 2025 20:50:07 -0400 Subject: [PATCH] Make oldconfig to prevent upstream clobbers --- openwrtbuilder | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/openwrtbuilder b/openwrtbuilder index a8c70a5..01434b8 100755 --- a/openwrtbuilder +++ b/openwrtbuilder @@ -631,6 +631,15 @@ from_source() { # Serial make prep is more reliable execute make "${make_opts[@]}" "-j1" defconfig + + # 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 + execute make "${make_opts[@]}" "-j1" download # make_opts+=("-j$(($(nproc)-1))")