Use canonincal method for now

This commit is contained in:
2025-08-08 23:56:28 -04:00
parent 70d24d7fae
commit a16e713895

View File

@@ -626,24 +626,18 @@ from_source() {
config_opts+=("CONFIG_IB=n") config_opts+=("CONFIG_IB=n")
config_opts+=("CONFIG_MAKE_TOOLCHAIN=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 # Write options to config seed file
for config in "${config_opts[@]}"; do for config in "${config_opts[@]}"; do
debug "Writing $config to $seed_file" debug "Writing $config to $seed_file"
echo "$config" >> "$seed_file" echo "$config" >> "$seed_file"
done done
# Serial make prep is more reliable
execute make "${make_opts[@]}" "-j1" oldconfig execute make "${make_opts[@]}" "-j1" oldconfig
# # Re-apply custom config options after defconfig # make_opts+=("-j$(($(nproc)-2))")
# 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))")
((DEBUG)) && make_opts+=("-j1") || make_opts+=("-j$(($(nproc)-2))") ((DEBUG)) && make_opts+=("-j1") || make_opts+=("-j$(($(nproc)-2))")
# Make image # Make image