mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-08-06 05:24:02 -06:00
stm32: Enable gcc -Os option on CONFIG_HAVE_LIMITED_CODE_SIZE
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
6e9b5b309c
commit
6356e3d35c
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue