stm32cube: build stm32xxx_ll_spi if CONFIG_SPI

Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
This commit is contained in:
Jorge Ramirez-Ortiz 2017-05-24 14:56:48 +02:00 committed by Anas Nashif
commit ae4363817b
4 changed files with 6 additions and 0 deletions

View file

@ -57,6 +57,7 @@ enum stm32f3x_pin_config_mode {
#include <stm32f3xx_ll_bus.h> #include <stm32f3xx_ll_bus.h>
#include <stm32f3xx_ll_rcc.h> #include <stm32f3xx_ll_rcc.h>
#include <stm32f3xx_ll_system.h> #include <stm32f3xx_ll_system.h>
#include <stm32f3xx_ll_spi.h>
#endif /* CONFIG_CLOCK_CONTROL_STM32_CUBE */ #endif /* CONFIG_CLOCK_CONTROL_STM32_CUBE */
#ifdef CONFIG_I2C #ifdef CONFIG_I2C

View file

@ -57,6 +57,7 @@ enum stm32f4x_pin_config_mode {
#include <stm32f4xx_ll_bus.h> #include <stm32f4xx_ll_bus.h>
#include <stm32f4xx_ll_rcc.h> #include <stm32f4xx_ll_rcc.h>
#include <stm32f4xx_ll_system.h> #include <stm32f4xx_ll_system.h>
#include <stm32f4xx_ll_spi.h>
#endif /* CONFIG_CLOCK_CONTROL_STM32_CUBE */ #endif /* CONFIG_CLOCK_CONTROL_STM32_CUBE */
#ifdef CONFIG_I2C #ifdef CONFIG_I2C

View file

@ -40,6 +40,7 @@
#include <stm32l4xx_ll_bus.h> #include <stm32l4xx_ll_bus.h>
#include <stm32l4xx_ll_rcc.h> #include <stm32l4xx_ll_rcc.h>
#include <stm32l4xx_ll_system.h> #include <stm32l4xx_ll_system.h>
#include <stm32l4xx_ll_spi.h>
#endif /* CONFIG_CLOCK_CONTROL_STM32_CUBE */ #endif /* CONFIG_CLOCK_CONTROL_STM32_CUBE */
#ifdef CONFIG_I2C #ifdef CONFIG_I2C

View file

@ -15,6 +15,7 @@ obj-y += stm32f3xx/drivers/src/stm32f3xx_hal.o
obj-y += stm32f3xx/drivers/src/stm32f3xx_hal_rcc.o obj-y += stm32f3xx/drivers/src/stm32f3xx_hal_rcc.o
obj-$(CONFIG_CLOCK_CONTROL_STM32_CUBE) += stm32f3xx/drivers/src/stm32f3xx_ll_utils.o obj-$(CONFIG_CLOCK_CONTROL_STM32_CUBE) += stm32f3xx/drivers/src/stm32f3xx_ll_utils.o
obj-$(CONFIG_SERIAL_HAS_DRIVER) += stm32f3xx/drivers/src/stm32f3xx_hal_uart.o obj-$(CONFIG_SERIAL_HAS_DRIVER) += stm32f3xx/drivers/src/stm32f3xx_hal_uart.o
obj-$(CONFIG_SPI_STM32) += stm32f3xx/drivers/src/stm32f3xx_ll_spi.o
obj-y += stm32f3xx/soc/system_stm32f3xx.o obj-y += stm32f3xx/soc/system_stm32f3xx.o
endif endif
@ -25,6 +26,7 @@ obj-$(CONFIG_CLOCK_CONTROL_STM32_CUBE) += stm32f4xx/drivers/src/stm32f4xx_ll_uti
obj-$(CONFIG_PWM) += stm32f4xx/drivers/src/stm32f4xx_hal_tim.o obj-$(CONFIG_PWM) += stm32f4xx/drivers/src/stm32f4xx_hal_tim.o
obj-$(CONFIG_SERIAL_HAS_DRIVER) += stm32f4xx/drivers/src/stm32f4xx_hal_uart.o obj-$(CONFIG_SERIAL_HAS_DRIVER) += stm32f4xx/drivers/src/stm32f4xx_hal_uart.o
obj-$(CONFIG_I2C) += stm32f4xx/drivers/src/stm32f4xx_ll_i2c.o obj-$(CONFIG_I2C) += stm32f4xx/drivers/src/stm32f4xx_ll_i2c.o
obj-$(CONFIG_SPI_STM32) += stm32f4xx/drivers/src/stm32f4xx_ll_spi.o
obj-y += stm32f4xx/soc/system_stm32f4xx.o obj-y += stm32f4xx/soc/system_stm32f4xx.o
endif endif
@ -40,6 +42,7 @@ obj-$(CONFIG_CLOCK_CONTROL_STM32_CUBE) += stm32l4xx/drivers/src/stm32l4xx_ll_uti
obj-$(CONFIG_PWM) += stm32l4xx/drivers/src/stm32l4xx_hal_tim.o obj-$(CONFIG_PWM) += stm32l4xx/drivers/src/stm32l4xx_hal_tim.o
obj-$(CONFIG_SERIAL_HAS_DRIVER) += stm32l4xx/drivers/src/stm32l4xx_hal_uart.o obj-$(CONFIG_SERIAL_HAS_DRIVER) += stm32l4xx/drivers/src/stm32l4xx_hal_uart.o
obj-$(CONFIG_I2C) += stm32l4xx/drivers/src/stm32l4xx_ll_i2c.o obj-$(CONFIG_I2C) += stm32l4xx/drivers/src/stm32l4xx_ll_i2c.o
obj-$(CONFIG_SPI_STM32) += stm32l4xx/drivers/src/stm32l4xx_ll_spi.o
obj-y += stm32l4xx/soc/system_stm32l4xx.o obj-y += stm32l4xx/soc/system_stm32l4xx.o
endif endif