Allow compiler flag SMALL to be set to disable SMALL-build. Patch by Andre Frimberger.

This commit is contained in:
Niclas Finne 2012-03-06 15:29:31 +01:00
parent f891774c1f
commit 2eee14a1d8

View file

@ -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__