mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
7092566f1f
- Moved compiler & linker flags from boards/common/msba2 to cpu/arm7_common - Moved dependency to newlib nano to cpu/arm7_common - Moved config to link in cpu/startup.o to cpu/arm7_common
26 lines
805 B
Makefile
26 lines
805 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 = $(PORT) $(FLASHFILE)
|
|
|
|
INCLUDES += -I$(RIOTBOARD)/common/msba2/include
|