浏览代码

More --source cleanup

bryan 2 年之前
父节点
当前提交
f82e32f88a
共有 1 个文件被更改,包括 9 次插入5 次删除
  1. 9 5
      openwrtbuilder

+ 9 - 5
openwrtbuilder

@@ -624,11 +624,6 @@ fromSource() {
 
     pushd "$GITWORKTREEDIR" &>/dev/null || return 1
 
-    # make clean # compiled output
-    # make targetclean # compiled output, toolchain
-    # make dirclean # compiled output, toolchain, build tools
-    make distclean # compiled output, toolchain, build tools, .config, feeds, .ccache
-
     # Grab the release seed config
     if ! curl -so "$SEED_FILE" "$SEED_URL"; then
         echo "Could not obtain $SEED_FILE from $SEED_URL"
@@ -690,6 +685,15 @@ fromSource() {
 
     # Make image
     (( DEBUG )) && make_opts+=("V=s")
+
+    # Cleaning modes
+    # make clean # compiled output
+    # make targetclean # compiled output, toolchain
+    # make dirclean # compiled output, toolchain, build tools
+    # make distclean # compiled output, toolchain, build tools, .config, feeds, .ccache
+
+    debug "make ${make_opts[*]} dirclean"
+    make "${make_opts[@]}" dirclean
     debug "make ${make_opts[*]} download"
     make "${make_opts[@]}" download
     debug "make ${make_opts[*]} -j$(nproc) world"