Do distclean before editing .config

此提交包含在:
2024-12-05 22:10:30 -05:00
父節點 ff275aa0ad
當前提交 8dc558a6d5

查看文件

@@ -525,6 +525,10 @@ from_source() {
./scripts/feeds update -a -f && ./scripts/feeds update -a -f &&
./scripts/feeds install -a -f ./scripts/feeds install -a -f
# Cleanup build environment
((VERBOSE)) && make_opts+=("V=s")
execute make "${make_opts[@]}" "-j1" distclean # TODO 'dirclean' has a bug that triggers menuconfig
# Grab the release seed config # Grab the release seed config
if ! execute "$DL_TOOL" "-o" "$seed_file" "$seed_url"; then if ! execute "$DL_TOOL" "-o" "$seed_file" "$seed_url"; then
echo "Could not obtain $seed_file from $seed_url" echo "Could not obtain $seed_file from $seed_url"
@@ -582,8 +586,6 @@ from_source() {
# make distclean # compiled output, toolchain, build tools, .config, feeds, .ccache # make distclean # compiled output, toolchain, build tools, .config, feeds, .ccache
# Make prep # Make prep
((VERBOSE)) && make_opts+=("V=s")
execute make "${make_opts[@]}" "-j1" dirclean # TODO 'dirclean' has a bug that triggers menuconfig
execute make "${make_opts[@]}" "-j1" defconfig execute make "${make_opts[@]}" "-j1" defconfig
execute make "${make_opts[@]}" "-j1" download execute make "${make_opts[@]}" "-j1" download
# ((DEBUG)) && make_opts+=("-j1") || make_opts+=("-j$(($(nproc)+1))") # ((DEBUG)) && make_opts+=("-j1") || make_opts+=("-j$(($(nproc)+1))")