From 2eee14a1d8c9cd26d034411c3669706dfb88a7f0 Mon Sep 17 00:00:00 2001 From: Niclas Finne Date: Tue, 6 Mar 2012 15:29:31 +0100 Subject: [PATCH] Allow compiler flag SMALL to be set to disable SMALL-build. Patch by Andre Frimberger. --- cpu/msp430/Makefile.msp430 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu/msp430/Makefile.msp430 b/cpu/msp430/Makefile.msp430 index c38800417..c173730f8 100644 --- a/cpu/msp430/Makefile.msp430 +++ b/cpu/msp430/Makefile.msp430 @@ -98,7 +98,7 @@ CFLAGS += -Os -fno-strict-aliasing LDFLAGS += -mmcu=$(MCU) -Wl,-Map=contiki-$(TARGET).map ### These flags can reduce the code size and RAM usage with up to 10% -ifdef SMALL +ifeq ($(SMALL),1) CFLAGS += -ffunction-sections # CFLAGS += -fdata-sections LDFLAGS += -Wl,--gc-sections,--undefined=_reset_vector__,--undefined=InterruptVectors,--undefined=_copy_data_init__,--undefined=_clear_bss_init__,--undefined=_end_of_init__