Skip to content

Commit

Permalink
keep the elf files in the zip package, useful with @girtsf tool
Browse files Browse the repository at this point in the history
  • Loading branch information
geeksville committed Mar 24, 2020
1 parent 34ead2d commit 3a756b0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/build-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ COUNTRIES="US EU433 EU865 CN JP"

SRCMAP=.pio/build/esp32/output.map
SRCBIN=.pio/build/esp32/firmware.bin
SRCELF=.pio/build/esp32/firmware.elf
OUTDIR=release/latest

# We keep all old builds (and their map files in the archive dir)
Expand All @@ -26,12 +27,14 @@ for COUNTRY in $COUNTRIES; do
rm -f $SRCBIN $SRCMAP
pio run # -v
cp $SRCBIN $OUTDIR/firmware-TBEAM-$COUNTRY-$VERSION.bin
cp $SRCELF $OUTDIR/firmware-TBEAM-$COUNTRY-$VERSION.elf
#cp $SRCMAP $ARCHIVEDIR/firmware-TBEAM-$COUNTRY-$VERSION.map

export PLATFORMIO_BUILD_FLAGS="-DHELTEC_LORA32 $COMMONOPTS"
rm -f $SRCBIN $SRCMAP
pio run # -v
cp $SRCBIN $OUTDIR/firmware-HELTEC-$COUNTRY-$VERSION.bin
cp $SRCELF $OUTDIR/firmware-HELTEC-$COUNTRY-$VERSION.elf
#cp $SRCMAP $ARCHIVEDIR/firmware-HELTEC-$COUNTRY-$VERSION.map
done

Expand All @@ -51,6 +54,6 @@ Generated by bin/buildall.sh -->
XML

rm -f $ARCHIVEDIR/firmware-$VERSION.zip
zip $ARCHIVEDIR/firmware-$VERSION.zip $OUTDIR/firmware-*-$VERSION.bin
zip $ARCHIVEDIR/firmware-$VERSION.zip $OUTDIR/firmware-*-$VERSION.*

echo BUILT ALL

0 comments on commit 3a756b0

Please sign in to comment.