1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

makefiles: add riotboot_serial as flash tool

This commit is contained in:
Benjamin Valentin 2020-11-22 16:51:13 +01:00 committed by Benjamin Valentin
parent ea2e103bde
commit a82d4e6683

View File

@ -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