Ignore SMALL when using IAR compiler
This commit is contained in:
parent
eba64bdc5e
commit
8e1e12dfd3
|
@ -101,9 +101,11 @@ CFLAGS += $(CFLAGSNO)
|
||||||
|
|
||||||
### These flags can reduce the code size and RAM usage with up to 10%
|
### These flags can reduce the code size and RAM usage with up to 10%
|
||||||
ifdef SMALL
|
ifdef SMALL
|
||||||
|
ifndef IAR
|
||||||
CFLAGS += -ffunction-sections
|
CFLAGS += -ffunction-sections
|
||||||
# CFLAGS += -fdata-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__
|
LDFLAGS += -Wl,--gc-sections,--undefined=_reset_vector__,--undefined=InterruptVectors,--undefined=_copy_data_init__,--undefined=_clear_bss_init__,--undefined=_end_of_init__
|
||||||
|
endif # !IAR
|
||||||
endif # SMALL
|
endif # SMALL
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue