Added mspgcc 4.7.x flags
This commit is contained in:
parent
7c4715ced7
commit
e147c63044
1 changed files with 9 additions and 0 deletions
|
@ -44,6 +44,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
|
||||
|
||||
CONTIKI_TARGET_SOURCEFILES += $(ARCH) $(UIPDRIVERS)
|
||||
|
||||
ifdef IAR
|
||||
|
|
Loading…
Reference in a new issue