feat(kmkpy): make dist -> uf2 files for each supported NRF board, with KMK bundled

This commit is contained in:
Josh Klar
2020-11-26 20:48:02 -08:00
parent eb64b62bc6
commit a013a84f19
5 changed files with 64 additions and 58 deletions

10
build_kmkpython_release.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/sh
TIMESTAMP=$(date +%s)
TARGETS=${TARGETS:-"nice_nano itsybitsy_nrf52840_express"}
for TARGET in ${TARGETS}; do
make -C /opt/kmkpython/ports/nrf BOARD="${TARGET}"
cp "/opt/kmkpython/ports/nrf/build-${TARGET}/firmware.uf2" "/dist/${TARGET}-${TIMESTAMP}.uf2"
echo "===> Built /dist/${TARGET}-${TIMESTAMP}.uf2"
done