summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2022-06-19 01:16:24 +1000
committerDamien George <damien@micropython.org>2022-06-20 23:37:38 +1000
commit1842efbdd9fce3a6ea68ee640e1377bd7ba4441e (patch)
treed92a0079a245905efefdb2418797fa34f76e99ae
parent5d3a0bb59c08c201c3e9e89db7c9e9386193dea9 (diff)
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>
-rw-r--r--ports/stm32/Makefile5
1 files changed, 1 insertions, 4 deletions
diff --git a/ports/stm32/Makefile b/ports/stm32/Makefile
index 1a4616f02..d6d379b38 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