diff --git a/boards/arm/stm32f7/common/src/CMakeLists.txt b/boards/arm/stm32f7/common/src/CMakeLists.txt index be18e09d371..00fcd922a7d 100644 --- a/boards/arm/stm32f7/common/src/CMakeLists.txt +++ b/boards/arm/stm32f7/common/src/CMakeLists.txt @@ -34,10 +34,10 @@ endif() if(CONFIG_STM32F7_CAN) if(CONFIG_STM32F7_CAN_CHARDRIVER) - list(APPEND SRCS stm32_can.c) + list(APPEND SRCS stm32_can_setup.c) endif() if(CONFIG_STM32F7_CAN_SOCKET) - list(APPEND SRCS stm32_cansock.c) + list(APPEND SRCS stm32_cansock_setup.c) endif() endif() diff --git a/boards/arm/stm32f7/nucleo-f722ze/src/CMakeLists.txt b/boards/arm/stm32f7/nucleo-f722ze/src/CMakeLists.txt index 7c56a5c4abb..11f59840f09 100644 --- a/boards/arm/stm32f7/nucleo-f722ze/src/CMakeLists.txt +++ b/boards/arm/stm32f7/nucleo-f722ze/src/CMakeLists.txt @@ -66,15 +66,6 @@ if(CONFIG_SENSORS_QENCODER) list(APPEND SRCS stm32_qencoder.c) endif() -if(CONFIG_STM32F7_CAN) - if(CONFIG_STM32F7_CAN_CHARDRIVER) - list(APPEND SRCS stm32_can.c) - endif() - if(CONFIG_STM32F7_CAN_SOCKET) - list(APPEND SRCS stm32_cansock.c) - endif() -endif() - if(CONFIG_USBDEV_COMPOSITE) list(APPEND SRCS stm32_composite.c) endif()