From 1842efbdd9fce3a6ea68ee640e1377bd7ba4441e Mon Sep 17 00:00:00 2001 From: Damien George Date: Sun, 19 Jun 2022 01:16:24 +1000 Subject: [PATCH] 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 --- ports/stm32/Makefile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ports/stm32/Makefile b/ports/stm32/Makefile index 1a4616f022..d6d379b387 100644 --- a/ports/stm32/Makefile +++ b/ports/stm32/Makefile @@ -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