소스 검색

Move --source output

bryan 2 년 전
부모
커밋
a7935e6888
2개의 변경된 파일14개의 추가작업 그리고 1개의 파일을 삭제
  1. 13 0
      openwrtbuilder
  2. 1 1
      profiles

+ 13 - 0
openwrtbuilder

@@ -700,10 +700,23 @@ fromSource() {
     make "${make_opts[@]}" -j"$(nproc)" world
 
     popd &>/dev/null || return 1
+
+    moveSourceImage
+
     exit
 }
 
 
+# Make the output tree match Image Builder's (non-destructively) 
+moveSourceImage() {
+    declare out_file
+    declare -a out_files=("$THIS_BINDIR/targets/${P_ARR[target]}/"*.{img,img.gz,ubi})
+    for out_file in "${out_files[@]}"; do
+        [[ -f $out_file ]] && ln -s "$out_file" "$THIS_BINDIR/${out_file##*/}"
+    done
+}
+
+
 debug() { (( DEBUG )) && echo "Debug: $*"; }
 
 

+ 1 - 1
profiles

@@ -11,7 +11,7 @@ default_packages="\
 	htop \
 	diffutils \
 	tar \
-	iperf \
+	iperf3 \
 	bash \
 	rsync \
 	openssh-sftp-server \