From a82d4e6683fd99a3f5d5c23a55b4c5c9cd9bcf79 Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Sun, 22 Nov 2020 16:51:13 +0100 Subject: [PATCH] makefiles: add riotboot_serial as flash tool --- makefiles/tools/riotboot_serial.inc.mk | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 makefiles/tools/riotboot_serial.inc.mk diff --git a/makefiles/tools/riotboot_serial.inc.mk b/makefiles/tools/riotboot_serial.inc.mk new file mode 100644 index 0000000000..46d9bd7c9d --- /dev/null +++ b/makefiles/tools/riotboot_serial.inc.mk @@ -0,0 +1,13 @@ +RIOTBOOT_SERIAL := $(RIOTTOOLS)/riotboot_serial/riotboot_serial + +FLASHER ?= $(RIOTBOOT_SERIAL) +FLASHFILE ?= $(HEXFILE) +PROG_BAUD ?= 115200 +FFLAGS ?= $(FLASHFILE) $(PORT) $(PROG_BAUD) + +ROM_OFFSET ?= $(RIOTBOOT_LEN) + +FLASHDEPS += $(RIOTBOOT_SERIAL) + +$(RIOTBOOT_SERIAL): + $(Q)env -u CC -u CFLAGS $(MAKE) -C $(RIOTTOOLS)/riotboot_serial