Move --source output

This commit is contained in:
2023-01-30 12:22:57 -05:00
parent 847fd59e7c
commit a7935e6888
2 changed files with 14 additions and 1 deletions

View File

@@ -700,10 +700,23 @@ fromSource() {
make "${make_opts[@]}" -j"$(nproc)" world make "${make_opts[@]}" -j"$(nproc)" world
popd &>/dev/null || return 1 popd &>/dev/null || return 1
moveSourceImage
exit 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: $*"; } debug() { (( DEBUG )) && echo "Debug: $*"; }

View File

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