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

19 lines
599 B
Makefile
Raw Normal View History

2018-01-17 18:12:19 +01:00
# custom flasher to use with the bootloader
2018-05-15 11:23:44 +02:00
TEENSY_LOADER = $(RIOTTOOLS)/teensy-loader-cli/teensy_loader
2018-01-17 18:12:19 +01:00
FLASHER = $(TEENSY_LOADER)
FLASHFILE ?= $(HEXFILE)
FFLAGS ?= --mcu=mk20dx256 $(FLASHFILE)
2018-01-17 18:12:19 +01:00
ifeq ($(TEENSY_LOADER),$(FLASHER))
FLASHDEPS += $(TEENSY_LOADER)
endif
# define the default port depending on the host OS
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbserial-*)))
$(TEENSY_LOADER):
@echo "[INFO] teensy_loader binary not found - building it from source now"
CC= CFLAGS= $(MAKE) -C $(RIOTTOOLS)/teensy-loader-cli
2018-01-17 18:12:19 +01:00
@echo "[INFO] teensy_loader binary successfully build!"