mirror of
https://github.com/meshtastic/firmware.git
synced 2026-09-16 08:30:04 -04:00
* Remove the Zephyr based nRF54L15 port * Add nRF54L15 port on the s145 Arduino core: nrf54l15dk and xiao_nrf54l15 variants * nRF54L: errno-style nrfx results, flush console before assert reset * nRF54L: log the SoftDevice status on Bluefruit failure, ignore the seed request event * Support the Wio-LR2021 LoRa Plus expansion board with OLED and K1 on the XIAO nRF54L15 variant * Consume the nRF54L15 platform, core and bootloader from their repositories * Pin the nRF54L15 platform to v0.2.0 * nRF52: forward SoftDevice flash events taken by the main loop to the flash driver, log the pairing failure status * Pin the nRF54L15 platform to v0.2.1 * Pin the nRF54L15 platform to v0.3.0 * Split the XIAO nRF54L15 variant into SX1262 and LoRa Plus environments, seed the SoftDevice on request, add the nrf54l15 CI build script * Pin the nRF54L15 platform to meshtastic/platform-nordicnrf54 v0.3.1 * NRF54: Fix mtjson generation --------- Co-authored-by: vidplace7 <vidplace7@gmail.com>
37 lines
897 B
Bash
Executable File
37 lines
897 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
VERSION=$(bin/buildinfo.py long)
|
|
|
|
BUILDDIR=.pio/build/$1
|
|
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 install -e $1
|
|
|
|
echo "Building for $1 with $PLATFORMIO_BUILD_FLAGS"
|
|
rm -f $BUILDDIR/firmware*
|
|
|
|
# The shell vars the build tool expects to find
|
|
export APP_VERSION=$VERSION
|
|
|
|
basename=firmware-$1-$VERSION
|
|
ota_basename=${basename}-ota
|
|
|
|
pio run --environment $1 -t dfu -t mtjson # -v
|
|
|
|
cp $BUILDDIR/$basename.elf $OUTDIR/$basename.elf
|
|
|
|
echo "Copying merged hex (bootloader + SoftDevice + application)"
|
|
cp $BUILDDIR/$basename.hex $OUTDIR/$basename.hex
|
|
|
|
echo "Copying nRF54L dfu (OTA) file"
|
|
cp $BUILDDIR/$basename.zip $OUTDIR/$ota_basename.zip
|
|
|
|
echo "Copying manifest"
|
|
cp $BUILDDIR/$basename.mt.json $OUTDIR/$basename.mt.json || true
|