aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2025-04-09 12:23:28 -0400
committerKevin O'Connor <kevin@koconnor.net>2025-04-16 13:54:44 -0400
commit868760f5b1013843aff7390bb94adfb4cb3fe679 (patch)
tree55b8cc20abcb408e91e3a1648718f4a1266799e5 /src/stm32
parentb0fa36e221959ad88b005fca856adede82427321 (diff)
downloadkutter-868760f5b1013843aff7390bb94adfb4cb3fe679.tar.gz
kutter-868760f5b1013843aff7390bb94adfb4cb3fe679.tar.xz
kutter-868760f5b1013843aff7390bb94adfb4cb3fe679.zip
Kconfig: Add new WANT_SPI option to reduce code size
Make it possible to not compile in support for SPI on chips with small flash sizes. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/stm32')
-rw-r--r--src/stm32/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stm32/Makefile b/src/stm32/Makefile
index dc6eeb08..bb3fe7fc 100644
--- a/src/stm32/Makefile
+++ b/src/stm32/Makefile
@@ -75,7 +75,7 @@ src-$(CONFIG_MACH_STM32L4) += stm32/gpioperiph.c
src-$(CONFIG_MACH_STM32L4) += stm32/stm32h7_adc.c stm32/stm32f0_i2c.c
spi-src-y := stm32/spi.c
spi-src-$(CONFIG_MACH_STM32H7) := stm32/stm32h7_spi.c
-src-$(CONFIG_HAVE_GPIO_SPI) += $(spi-src-y)
+src-$(CONFIG_WANT_SPI) += $(spi-src-y)
sdio-src-y := stm32/sdio.c
src-$(CONFIG_HAVE_GPIO_SDIO) += $(sdio-src-y)
usb-src-$(CONFIG_HAVE_STM32_USBFS) := stm32/usbfs.c