update build-* to also output binaries to *-update.bin/uf2

This commit is contained in:
Jonathan Bennett 2025-10-05 13:52:57 -05:00
parent d708ed5908
commit 9f5be559c9
3 changed files with 6 additions and 0 deletions

View File

@ -47,6 +47,8 @@ else
cp bin/*.uf2 $OUTDIR
fi
cp $OUTDIR/$basename.uf2 $OUTDIR/$basename-update.uf2
if (echo $1 | grep -q "rak4631"); then
echo "Copying hex file"
cp .pio/build/$1/firmware.hex $OUTDIR/$basename.hex

View File

@ -29,5 +29,7 @@ echo "Copying uf2 file"
SRCBIN=.pio/build/$1/firmware.uf2
cp $SRCBIN $OUTDIR/$basename.uf2
cp $OUTDIR/$basename.uf2 $OUTDIR/$basename-update.uf2
cp bin/device-install.* $OUTDIR
cp bin/device-update.* $OUTDIR

View File

@ -27,3 +27,5 @@ cp $SRCELF $OUTDIR/$basename.elf
SRCBIN=.pio/build/$1/firmware.bin
cp $SRCBIN $OUTDIR/$basename.bin
cp $OUTDIR/$basename.bin $OUTDIR/$basename-update.bin