boards/telosb: Makefile cleanup

This commit is contained in:
Hauke Petersen 2015-09-16 17:19:22 +02:00
parent 6f5786d08d
commit bf3e2eb258
2 changed files with 11 additions and 24 deletions

View File

@ -1 +0,0 @@
USEMODULE += msp430_common

View File

@ -1,29 +1,17 @@
include $(RIOTBOARD)/$(BOARD)/Makefile.dep
## the cpu to build for ## the cpu to build for
export CPU = msp430fxyz export CPU = msp430fxyz
export MCU = msp430f1611 export CPU_MODEL = msp430f1611
# toolchain config # set default port depending on operating system
export PREFIX = msp430- PORT_LINUX ?= /dev/ttyUSB0
export CC = $(PREFIX)gcc PORT_DARWIN ?= $(shell ls -1 /dev/tty.SLAB_USBtoUART* | head -n 1)
export AR = $(PREFIX)ar # setup serial terminal
export CFLAGS += -Wstrict-prototypes -gdwarf-2 -Os -Wall -mmcu=$(MCU) include $(RIOTBOARD)/Makefile.include.serial
export ASFLAGS += -mmcu=$(MCU) --defsym $(MCU)=1 --gdwarf-2
export AS = $(PREFIX)as
export LINK = $(PREFIX)gcc
export SIZE = $(PREFIX)size
export OBJCOPY = $(PREFIX)objcopy
export LINKFLAGS += -mmcu=$(MCU) -lgcc $(BINDIR)msp430_common/startup.o
export TERMPROG = $(RIOTBASE)/dist/tools/pyterm/pyterm
export FLASHER = $(RIOTBASE)/dist/tools/goodfet/goodfet.bsl
ifeq ($(strip $(PORT)),)
export PORT = /dev/ttyUSB0
endif
export FFLAGS = --telosb -c $(PORT) -r -e -I -p $(HEXFILE)
export TERMFLAGS += -p "$(PORT)"
export INCLUDES += -I$(RIOTCPU)/$(CPU)/include/ -I$(RIOTBOARD)/$(BOARD)/include/ # flash tool configuration
export INCLUDES += -I$(RIOTCPU)/msp430-common/include
export OFLAGS = -O ihex export OFLAGS = -O ihex
export FLASHER = $(RIOTBASE)/dist/tools/goodfet/goodfet.bsl
export FFLAGS = --telosb -c $(PORT) -r -e -I -p $(HEXFILE)
export UNDEF += $(BINDIR)msp430_common/startup.o # include msp430 base makefile
include $(RIOTBOARD)/Makefile.include.msp430_common