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

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

commit d6d943e37bb82ce3cedac246e7fe896d4d6b0852
Author: Bowen Wang <[email protected]>
AuthorDate: Thu Nov 26 10:59:05 2026 +0800

    drivers/reset: build reset_rpmsg.c with CMake
    
    drivers/reset/Make.defs builds reset_rpmsg.c with CONFIG_RESET_RPMSG,
    but the CMake build never adds it, so a CMake build with RESET_RPMSG
    fails to link:
    
      drivers/drivers_initialize.c:183: undefined reference to
      `reset_rpmsg_server_init'
    
    Add it as Make.defs does.
    
    Signed-off-by: Bowen Wang <[email protected]>
---
 drivers/reset/CMakeLists.txt | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/reset/CMakeLists.txt b/drivers/reset/CMakeLists.txt
index b9c09148156..16d397d1eb3 100644
--- a/drivers/reset/CMakeLists.txt
+++ b/drivers/reset/CMakeLists.txt
@@ -23,5 +23,9 @@
 if(CONFIG_RESET)
   set(SRCS core.c)
 
+  if(CONFIG_RESET_RPMSG)
+    list(APPEND SRCS reset_rpmsg.c)
+  endif()
+
   target_sources(drivers PRIVATE ${SRCS})
 endif()

Reply via email to