You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2024/10/22 00:53:14 UTC

(nuttx) 01/02: boards/arm/stm32f7: fix nucleo boards break for cmake

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 91b71867c5dbe3e86abfd9f9a698ee20c23a61b6
Author: raiden00pl <ra...@railab.me>
AuthorDate: Mon Oct 21 19:24:09 2024 +0200

    boards/arm/stm32f7: fix nucleo boards break for cmake
    
    fix nucleo-f722ze and nucleo-f746zg/pysim break for cmake
---
 boards/arm/stm32f7/common/src/CMakeLists.txt        | 4 ++--
 boards/arm/stm32f7/nucleo-f722ze/src/CMakeLists.txt | 9 ---------
 2 files changed, 2 insertions(+), 11 deletions(-)

diff --git a/boards/arm/stm32f7/common/src/CMakeLists.txt b/boards/arm/stm32f7/common/src/CMakeLists.txt
index be18e09d37..00fcd922a7 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 7c56a5c4ab..11f59840f0 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()