From e82d201ca5c6194454acce7ea37cc53b1af660f8 Mon Sep 17 00:00:00 2001 From: Daniele Alessandrelli Date: Sat, 10 Aug 2013 19:20:26 +0200 Subject: [PATCH] Added mspgcc 4.7.x flags to the Wismote makefile --- platform/wismote/Makefile.wismote | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/platform/wismote/Makefile.wismote b/platform/wismote/Makefile.wismote index a037ced0e..cc87bd446 100644 --- a/platform/wismote/Makefile.wismote +++ b/platform/wismote/Makefile.wismote @@ -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