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

26 lines
805 B
Makefile
Raw Normal View History

BOARDS_COMMON_MSBA2_DIR := $(patsubst %/,%,$(dir $(lastword $(MAKEFILE_LIST))))
# Compile `lpc2k_pgm` when required
# It is still compiling in `boards` as it was the case before introducing the
# rule to autobuild
MSBA2_TOOLS = $(BOARDS_COMMON_MSBA2_DIR)/tools
LPC2K_PGM = $(MSBA2_TOOLS)/bin/lpc2k_pgm
$(LPC2K_PGM): FORCE
env -i PATH=$(PATH) make -C $(MSBA2_TOOLS)
FLASHDEPS += $(if $(findstring $(LPC2K_PGM),$(FLASHER)),$(LPC2K_PGM))
FLASHER ?= $(LPC2K_PGM)
2017-05-18 15:46:38 +02:00
# configure serial interface
PORT_LINUX ?= /dev/ttyUSB0
# This does not make a lot of sense, but it has the same value as the previous code
PORT_DARWIN ?= /dev/tty.usbserial-ARM
PYTERMFLAGS += -tg
2017-05-18 15:46:38 +02:00
include $(RIOTMAKE)/tools/serial.inc.mk
FLASHFILE ?= $(HEXFILE)
FFLAGS = $(PORT) $(FLASHFILE)
2013-06-12 16:27:17 +02:00
INCLUDES += -I$(RIOTBOARD)/common/msba2/include