aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2025-04-09 12:04:09 -0400
committerKevin O'Connor <kevin@koconnor.net>2025-04-16 13:54:44 -0400
commit6356e3d35c2d9382a193d186a20890a079578b4c (patch)
tree3d8e33ccbf8179b36fe0b4baeea82907bdbfe693 /src
parent6e9b5b309c13c1eec261a8016a4c9ed1cdb11197 (diff)
downloadkutter-6356e3d35c2d9382a193d186a20890a079578b4c.tar.gz
kutter-6356e3d35c2d9382a193d186a20890a079578b4c.tar.xz
kutter-6356e3d35c2d9382a193d186a20890a079578b4c.zip
stm32: Enable gcc -Os option on CONFIG_HAVE_LIMITED_CODE_SIZE
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src')
-rw-r--r--src/stm32/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/stm32/Makefile b/src/stm32/Makefile
index 5f4d3af5..eaf989af 100644
--- a/src/stm32/Makefile
+++ b/src/stm32/Makefile
@@ -18,6 +18,7 @@ dirs-$(CONFIG_MACH_STM32L4) += lib/stm32l4
MCU := $(shell echo $(CONFIG_MCU))
MCU_UPPER := $(shell echo $(CONFIG_MCU) | tr a-z A-Z | tr X x)
+CFLAGS-$(CONFIG_HAVE_LIMITED_CODE_SIZE) += -Os
CFLAGS-$(CONFIG_MACH_STM32F0) += -mcpu=cortex-m0 -Ilib/stm32f0/include
CFLAGS-$(CONFIG_MACH_STM32F103) += -mcpu=cortex-m3
CFLAGS-$(CONFIG_MACH_N32G45x) += -mcpu=cortex-m4 -Ilib/n32g45x/include