mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
Merge pull request #331 from alessandrelli/msp430-gcc-4.7-flags-wismote
Add mspgcc 4.7.x flags to the wismote makefile
This commit is contained in:
commit
f2f0540051
@ -22,6 +22,15 @@ ifeq ($(UIP_CONF_IPV6),1)
|
||||
CFLAGS += -DWITH_UIP6=1
|
||||
endif
|
||||
|
||||
ifndef IAR
|
||||
ifneq (,$(findstring 4.7.,$(shell msp430-gcc -dumpversion)))
|
||||
TARGET_MEMORY_MODEL ?= medium
|
||||
CFLAGS += -mmemory-model=$(TARGET_MEMORY_MODEL)
|
||||
CFLAGS += -ffunction-sections -fdata-sections -mcode-region=far
|
||||
LDFLAGS += -mmemory-model=$(TARGET_MEMORY_MODEL) -Wl,-gc-sections
|
||||
endif
|
||||
endif
|
||||
|
||||
ifdef IAR
|
||||
CFLAGS += -D__MSP430F5437__=1 -e --vla -Ohz --multiplier=32 --multiplier_location=4C0 --hw_workaround=CPU40 --core=430X --double=32
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user