drivers: spi: stm32: use Kconfig to select HAL/LL sources

Use "select USE_STM32_LL_SPI" to select the needed STM32 LL files,
instead of editing ext/hal/st/stm32cube/CMakeLists.txt

Signed-off-by: Erwin Rol <erwin@erwinrol.com>
This commit is contained in:
Erwin Rol 2017-10-31 12:00:26 +01:00 committed by Kumar Gala
commit 23bb4e6101

View file

@ -56,6 +56,7 @@ config SPI_STM32
depends on SPI && SOC_FAMILY_STM32
depends on SOC_SERIES_STM32L4X || SOC_SERIES_STM32F0X || SOC_SERIES_STM32F3X || SOC_SERIES_STM32F4X
select HAS_DTS_SPI
select USE_STM32_LL_SPI
default n
help
Enable SPI support on the STM32 family of processors.