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:
Damien George 2022-06-19 01:16:24 +10:00
parent 5d3a0bb59c
commit 1842efbdd9
1 changed files with 1 additions and 4 deletions

View File

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