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

This commit is contained in:
Josh Klar committed 2021-06-20 13:55:18 -07:00
1 parent ee7094e799
commit 9b5e35a5a8
5 files changed
+64 -58

No files matched your search

+10
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