소스 검색

Simplify make

bryan 10 달 전
부모
커밋
4d721f43c1
1개의 변경된 파일4개의 추가작업 그리고 7개의 파일을 삭제
  1. 4 7
      openwrtbuilder

+ 4 - 7
openwrtbuilder

@@ -589,7 +589,7 @@ fromSource() {
             ;;
     esac
 
-    [[ -d "$GITWORKTREEDIR" ]] && rm -rf "$GITWORKTREEDIR" # overwrite worktree changes
+    [[ -d "$GITWORKTREEDIR" ]] && execute rm -rf "$GITWORKTREEDIR" # overwrite worktree changes
     
     execute "${wt_cmd[@]}" "$wt_commit"
 
@@ -673,15 +673,12 @@ fromSource() {
 
     # Make prep
     (( DEBUG )) && make_opts+=("V=s")
-    execute make "${make_opts[@]}" "-j1" targetclean defconfig download
+    execute make "${make_opts[@]}" "-j1" dirclean defconfig download
 
     # Make image
     if ! execute ionice -c 3 chrt --idle 0 nice -n19 make "${make_opts[@]}" "-j$(($(nproc)+1))" world; then
-        echo "Error: make failed, retrying using slow mode"
-        if ! execute make V=s -j1 dirclean world; then
-            echo "Error: slow make failed"
-            return 1
-        fi
+        echo "Error: make failed"
+        return 1
     fi
 
     popd || return 1