Add firmware.signed.bin target

This commit is contained in:
cpq committed 2026-10-03 16:50:02 +01:00
1 parent 954eb07b6d
commit da82df2041
2 files changed
+5

No files matched your search

@@ -24,6 +24,10 @@ firmware.bin: firmware.elf
@echo
@echo "To flash, run 'make flash', or use STM32CubeProgrammer"
firmware.signed.bin: firmware.bin
test -f private.pem || node $(MGDIR)/resources/sign.js keygen
node $(MGDIR)/resources/sign.js sign firmware.bin
flash: firmware.bin
STM32_Programmer_CLI -c port=swd -w firmware.elf -hardRst
@@ -34,3 +34,4 @@
// mdash.net device management service support
#define MG_ENABLE_MDASH 0
#define MG_MDASH_KEY "..." // Set this - mDash device token
#define MG_FIRMWARE_VERSION "1.0.0"