Allow compiler flag SMALL to be set to disable SMALL-build. Patch by Andre Frimberger.
This commit is contained in:
parent
f891774c1f
commit
2eee14a1d8
1 changed files with 1 additions and 1 deletions
|
@ -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__
|
||||
|
|
Loading…
Reference in a new issue