mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
60686c96dc
The 'msba2' common files have accumulated many empty files are files that do nothing. This makes reasoning about the boards needlessly difficult. Trim down on `common/msba2/` so that it now only contains the setup for the UART/bootloader based flashing. This should eventuelly be moved to `makefiles/tools/`
24 lines
760 B
Makefile
24 lines
760 B
Makefile
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)
|
|
|
|
# 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
|
|
include $(RIOTMAKE)/tools/serial.inc.mk
|
|
|
|
FLASHFILE ?= $(HEXFILE)
|
|
FFLAGS = $(PROG_DEV) $(FLASHFILE)
|