Blame view

RIOT/boards/msba2-common/Makefile.include 1003 Bytes
fb11e647   vrobic   reseau statique a...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
  ## the cpu to build for
  export CPU = lpc2387
  
  FLASHER = lpc2k_pgm
  TERMPROG ?= $(RIOTBASE)/dist/tools/pyterm/pyterm
  
  export CFLAGS_CPU   = -mcpu=arm7tdmi-s
  export CFLAGS_LINK  = -ffunction-sections -fdata-sections -fno-builtin -fshort-enums
  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),)
  	export PORT = /dev/ttyUSB0
  endif
  export FFLAGS = $(PORT) $(HEXFILE)
  export TERMFLAGS += -tg -p "$(PORT)"
  
  export INCLUDES += -I$(RIOTBOARD)/msba2-common/include -I$(RIOTBOARD)/msba2-common/drivers/include
  
  export OFLAGS = -O ihex
  
  export UNDEF += $(BINDIR)/cpu/startup.o
  
  USEMODULE += msba2-common-drivers