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
Gaëtan Harter 636285ebe4
boards: move CPU/CPU_MODEL definition to Makefile.features
cpu/$(CPU)/Makefile.features and cpu/$(CPU)/Makefile.dep are
automatically included

Part of moving CPU/CPU_MODEL definition to Makefile.features to have it
available before Makefile.include.
2019-08-20 16:11:50 +02:00

23 lines
688 B
Makefile

# custom flasher to use with the bootloader
TEENSY_LOADER = $(RIOTTOOLS)/teensy-loader-cli/teensy_loader
FLASHER = $(TEENSY_LOADER)
FLASHFILE ?= $(HEXFILE)
FFLAGS ?= --mcu=mk20dx256 $(FLASHFILE)
ifeq ($(TEENSY_LOADER),$(FLASHER))
FLASHDEPS += $(TEENSY_LOADER)
endif
# define the default port depending on the host OS
PORT_LINUX ?= /dev/ttyACM0
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
@echo "[INFO] teensy_loader binary successfully build!"
# setup serial terminal
include $(RIOTMAKE)/tools/serial.inc.mk