aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/stm32/Makefile')
-rw-r--r--src/stm32/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/stm32/Makefile b/src/stm32/Makefile
index 778f2327..10538b27 100644
--- a/src/stm32/Makefile
+++ b/src/stm32/Makefile
@@ -43,7 +43,9 @@ src-$(CONFIG_MACH_STM32F4) += stm32/adc.c stm32/i2c.c
src-$(CONFIG_MACH_STM32H7) += ../lib/stm32h7/system_stm32h7xx.c
src-$(CONFIG_MACH_STM32H7) += stm32/stm32h7.c generic/armcm_timer.c
src-$(CONFIG_MACH_STM32H7) += stm32/stm32h7_adc.c
-src-$(CONFIG_HAVE_GPIO_SPI) += stm32/spi.c
+spi-src-y := stm32/spi.c
+spi-src-$(CONFIG_MACH_STM32H7) := stm32/stm32h7_spi.c
+src-$(CONFIG_HAVE_GPIO_SPI) += $(spi-src-y)
usb-src-$(CONFIG_HAVE_STM32_USBFS) := stm32/usbfs.c
usb-src-$(CONFIG_HAVE_STM32_USBOTG) := stm32/usbotg.c
src-$(CONFIG_USBSERIAL) += $(usb-src-y) stm32/chipid.c generic/usb_cdc.c