Skip to content

Commit

Permalink
Added mspgcc 4.7.x flags
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdunkels committed Aug 6, 2013
1 parent 7c4715c commit e147c63
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions platform/exp5438/Makefile.exp5438
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e147c63

Please sign in to comment.