浏览代码

More work on --source

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

+ 7 - 9
openwrtbuilder

@@ -624,14 +624,8 @@ fromSource() {
 
     pushd "$GITWORKTREEDIR" &>/dev/null || return 1
 
-    # TODO for now remove the SEED_FILE, see notes below
-    [[ -f $SEED_FILE ]] && rm -f "$SEED_FILE"
-
-    # Update package feed
-    # ./scripts/feeds install will create defaults (make defconfig) 
-    # for an exiting .config so make sure it doesn't exist first
-    ./scripts/feeds update -a &&
-    ./scripts/feeds install -a
+    # If we don't distclean, make sure to remove existing .config
+    make distclean
 
     # Grab the release seed config
     if ! curl -so "$SEED_FILE" "$SEED_URL"; then
@@ -671,7 +665,11 @@ fromSource() {
     done
 
     # normalize .config and remove dupes
-    make defconfig # TODO
+    # Update package feed
+    # ./scripts/feeds install will create defaults (make defconfig) 
+    # for an exiting .config so make sure it doesn't exist first
+    ./scripts/feeds update -a &&
+    ./scripts/feeds install -a
 
     # TODO for now symlink clang for qosify
     [[ -d "$GITSRCDIR/staging_dir/host/llvm-bpf/bin" ]] || mkdir -p "$GITSRCDIR/staging_dir/host/llvm-bpf/bin"