2013-03-13 16:52:00 +01:00
|
|
|
## the cpu to build for
|
|
|
|
export CPU = lpc2387
|
|
|
|
|
|
|
|
# toolchain config
|
2013-04-10 16:21:17 +02:00
|
|
|
export PREFIX = @arm-none-eabi-
|
2013-03-13 16:52:00 +01:00
|
|
|
export CC = @$(PREFIX)gcc
|
|
|
|
export AR = @$(PREFIX)ar
|
|
|
|
export CFLAGS = -std=gnu99 -O2 -Wall -Wstrict-prototypes -mcpu=arm7tdmi-s -gdwarf-2
|
|
|
|
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-04-11 13:29:34 +02:00
|
|
|
TERM = $(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
|
|
|
|
export HEXFILE = bin/$(PROJECT).hex
|
2013-04-09 11:25:04 +02:00
|
|
|
export FFLAGS = $(PORT) $(PROJBINDIR)/$(PROJECT).hex
|
2013-03-23 18:42:11 +01:00
|
|
|
include $(RIOTBOARD)/msba2-common/Makefile.dep
|
2013-06-12 16:27:17 +02:00
|
|
|
|
|
|
|
export INCLUDES += -I$(RIOTCPU)/lpc2387/include
|