2013-03-13 16:52:00 +01:00
|
|
|
## the cpu to build for
|
|
|
|
export CPU = lpc2387
|
|
|
|
|
|
|
|
# toolchain config
|
2014-01-03 19:00:41 +01:00
|
|
|
export PREFIX = arm-none-eabi-
|
|
|
|
#export PREFIX = arm-elf-
|
|
|
|
export CC = $(PREFIX)gcc
|
|
|
|
export AR = $(PREFIX)ar
|
2014-02-12 17:32:34 +01:00
|
|
|
export CFLAGS += -O2 -Wall -Wstrict-prototypes -mcpu=arm7tdmi-s -gdwarf-2
|
2013-03-13 16:52:00 +01:00
|
|
|
export ASFLAGS = -gdwarf-2 -mcpu=arm7tdmi-s
|
|
|
|
export AS = $(PREFIX)as
|
|
|
|
export LINK = $(PREFIX)gcc
|
|
|
|
export SIZE = $(PREFIX)size
|
|
|
|
export OBJCOPY = $(PREFIX)objcopy
|
|
|
|
FLASHER = lpc2k_pgm
|
2013-08-09 15:48:53 +02:00
|
|
|
TERMPROG = $(RIOTBASE)/dist/tools/pyterm/pyterm.py
|
2013-03-13 16:52:00 +01:00
|
|
|
LINKFLAGS = -gdwarf-2 -mcpu=arm7tdmi-s -static -lgcc -nostartfiles -T$(RIOTBASE)/cpu/$(CPU)/linkerscript.x
|
|
|
|
|
|
|
|
ifeq ($(strip $(PORT)),)
|
|
|
|
export PORT = /dev/ttyUSB0
|
|
|
|
endif
|
2014-01-03 18:45:07 +01:00
|
|
|
export HEXFILE = $(BINDIR)$(PROJECT).hex
|
|
|
|
export FFLAGS = $(PORT) $(HEXFILE)
|
2013-03-23 18:42:11 +01:00
|
|
|
include $(RIOTBOARD)/msba2-common/Makefile.dep
|
2013-06-12 16:27:17 +02:00
|
|
|
|
2013-12-24 14:50:26 +01:00
|
|
|
export INCLUDES += -I$(RIOTBOARD)/msba2-common/include -I$(RIOTBOARD)/msba2-common/drivers/include
|
|
|
|
|
2013-10-11 15:07:53 +02:00
|
|
|
export OFLAGS = -O ihex
|