stm32/Makefile: Set CSUPEROPT to -Os for F0 and G0 MCUs to save space.
Saves 1804 bytes on NUCLEO_F091RC, and 1080 bytes on NUCLEO_G0B1RE. Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
parent
5d3a0bb59c
commit
1842efbdd9
|
@ -325,11 +325,8 @@ SRC_O += \
|
|||
$(STARTUP_FILE) \
|
||||
$(SYSTEM_FILE)
|
||||
|
||||
ifeq ($(MCU_SERIES),l0)
|
||||
CSUPEROPT = -Os # save some code space
|
||||
endif
|
||||
|
||||
ifeq ($(MCU_SERIES),$(filter $(MCU_SERIES),f0 g0 l0))
|
||||
CSUPEROPT = -Os # save some code space
|
||||
SRC_O += \
|
||||
resethandler_m0.o \
|
||||
shared/runtime/gchelper_m0.o
|
||||
|
|
Loading…
Reference in New Issue