mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-01 02:09:57 +00:00
74d0c58576
Some checks are pending
CI / setup (check) (push) Waiting to run
CI / setup (esp32) (push) Waiting to run
CI / setup (esp32c3) (push) Waiting to run
CI / setup (esp32c6) (push) Waiting to run
CI / setup (esp32s3) (push) Waiting to run
CI / setup (nrf52840) (push) Waiting to run
CI / setup (rp2040) (push) Waiting to run
CI / setup (stm32) (push) Waiting to run
CI / check (push) Blocked by required conditions
CI / build-esp32 (push) Blocked by required conditions
CI / build-esp32-s3 (push) Blocked by required conditions
CI / build-esp32-c3 (push) Blocked by required conditions
CI / build-esp32-c6 (push) Blocked by required conditions
CI / build-nrf52 (push) Blocked by required conditions
CI / build-rpi2040 (push) Blocked by required conditions
CI / build-stm32 (push) Blocked by required conditions
CI / package-raspbian (push) Waiting to run
CI / package-raspbian-armv7l (push) Waiting to run
CI / package-native (push) Waiting to run
CI / after-checks (push) Blocked by required conditions
CI / gather-artifacts (esp32) (push) Blocked by required conditions
CI / gather-artifacts (esp32c3) (push) Blocked by required conditions
CI / gather-artifacts (esp32c6) (push) Blocked by required conditions
CI / gather-artifacts (esp32s3) (push) Blocked by required conditions
CI / gather-artifacts (nrf52840) (push) Blocked by required conditions
CI / gather-artifacts (rp2040) (push) Blocked by required conditions
CI / gather-artifacts (stm32) (push) Blocked by required conditions
CI / release-artifacts (push) Blocked by required conditions
CI / release-firmware (esp32) (push) Blocked by required conditions
CI / release-firmware (esp32c3) (push) Blocked by required conditions
CI / release-firmware (esp32c6) (push) Blocked by required conditions
CI / release-firmware (esp32s3) (push) Blocked by required conditions
CI / release-firmware (nrf52840) (push) Blocked by required conditions
CI / release-firmware (rp2040) (push) Blocked by required conditions
CI / release-firmware (stm32) (push) Blocked by required conditions
Flawfinder Scan / Flawfinder (push) Waiting to run
46 lines
1.2 KiB
Bash
Executable File
46 lines
1.2 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
VERSION=`bin/buildinfo.py long`
|
|
SHORT_VERSION=`bin/buildinfo.py short`
|
|
|
|
OUTDIR=release/
|
|
|
|
rm -f $OUTDIR/firmware*
|
|
rm -r $OUTDIR/* || true
|
|
|
|
# Important to pull latest version of libs into all device flavors, otherwise some devices might be stale
|
|
platformio pkg update -e $1
|
|
|
|
echo "Building for $1 with $PLATFORMIO_BUILD_FLAGS"
|
|
rm -f .pio/build/$1/firmware.*
|
|
|
|
# The shell vars the build tool expects to find
|
|
export APP_VERSION=$VERSION
|
|
|
|
basename=firmware-$1-$VERSION
|
|
|
|
pio run --environment $1 # -v
|
|
SRCELF=.pio/build/$1/firmware.elf
|
|
cp $SRCELF $OUTDIR/$basename.elf
|
|
|
|
echo "Copying ESP32 bin file"
|
|
SRCBIN=.pio/build/$1/firmware.factory.bin
|
|
cp $SRCBIN $OUTDIR/$basename.bin
|
|
|
|
echo "Copying ESP32 update bin file"
|
|
SRCBIN=.pio/build/$1/firmware.bin
|
|
cp $SRCBIN $OUTDIR/$basename-update.bin
|
|
|
|
echo "Building Filesystem for ESP32 targets"
|
|
pio run --environment $1 -t buildfs
|
|
cp .pio/build/$1/littlefs.bin $OUTDIR/littlefswebui-$VERSION.bin
|
|
# Remove webserver files from the filesystem and rebuild
|
|
ls -l data/static # Diagnostic list of files
|
|
rm -rf data/static
|
|
pio run --environment $1 -t buildfs
|
|
cp .pio/build/$1/littlefs.bin $OUTDIR/littlefs-$VERSION.bin
|
|
cp bin/device-install.* $OUTDIR
|
|
cp bin/device-update.* $OUTDIR
|