1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/makefiles/tools/riotboot_serial.inc.mk
Benjamin Valentin 4be2829537 makefiles: riotboot_serial: default to STDIO BAUD for PROG_BAUD
If $(PROG_BAUD) is not set, default to the boards $(BAUD).
2021-11-21 23:08:31 +01:00

14 lines
339 B
Makefile

RIOTBOOT_SERIAL := $(RIOTTOOLS)/riotboot_serial/riotboot_serial
FLASHER ?= $(RIOTBOOT_SERIAL)
FLASHFILE ?= $(HEXFILE)
PROG_BAUD ?= $(BAUD)
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