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>
pull/9310/head
Damien George 2022-06-19 01:16:24 +10:00
rodzic 5d3a0bb59c
commit 1842efbdd9
1 zmienionych plików z 1 dodań i 4 usunięć

Wyświetl plik

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