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

32 lines
914 B
Makefile
Raw Normal View History

## the cpu to build for
export CPU = lpc2387
FLASHER = lpc2k_pgm
2017-05-18 15:46:38 +02:00
# configure serial interface
export TERMFLAGS += -tg -p "$(PORT)"
include $(RIOTMAKE)/tools/serial.inc.mk
export CFLAGS_CPU = -mcpu=arm7tdmi-s
export CFLAGS_LINK = -ffunction-sections -fdata-sections -fno-builtin -fshort-enums
2017-01-16 15:54:59 +01:00
export CFLAGS_DBG ?= -ggdb -g3
export CFLAGS_OPT ?= -Os
export CFLAGS += $(CFLAGS_CPU) $(CFLAGS_LINK) $(CFLAGS_DBG) $(CFLAGS_OPT)
export ASFLAGS += $(CFLAGS_CPU) $(CFLAGS_DBG)
export LINKFLAGS += -T$(RIOTCPU)/$(CPU)/ldscripts/$(CPU).ld
export LINKFLAGS += $(CFLAGS_CPU) $(CFLAGS_DBG) $(CFLAGS_OPT) -static -lgcc -nostartfiles
export LINKFLAGS += -Wl,--gc-sections
# use the nano-specs of Newlib when available
USEMODULE += newlib_nano
ifeq ($(PORT),)
2017-09-22 14:52:12 +02:00
export PORT = /dev/ttyUSB0
endif
export FFLAGS = $(PORT) $(HEXFILE)
2013-06-12 16:27:17 +02:00
INCLUDES += -I$(RIOTBOARD)/common/msba2/include
2013-12-24 14:50:26 +01:00
export UNDEF += $(BINDIR)/cpu/startup.o