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

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

commit 23c26ebd224ca81d739e626cd8fb59b3040a3adc
Author: yangsong8 <[email protected]>
AuthorDate: Mon Sep 7 19:44:24 2026 +0800

    drivers/timers: build ocu.c in the Make-based build
    
    The OCU upper-half (ocu.c) was only wired into CMakeLists.txt, not
    Make.defs. A Make/testbuild.sh build with CONFIG_OCU=y therefore links
    against an undefined ocu_register. Add the missing CONFIG_OCU source
    entry so both build systems compile ocu.c.
    
    [skip-cmake-parity]
    
    Assisted-by: Kiro:claude-opus-5-5
    Signed-off-by: yangsong8 <[email protected]>
---
 drivers/timers/Make.defs | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/timers/Make.defs b/drivers/timers/Make.defs
index b3c2274fcae..776799039e5 100644
--- a/drivers/timers/Make.defs
+++ b/drivers/timers/Make.defs
@@ -154,6 +154,12 @@ ifeq ($(CONFIG_DSHOT),y)
   TMRVPATH = :timers
 endif
 
+ifeq ($(CONFIG_OCU),y)
+  CSRCS += ocu.c
+  TMRDEPPATH = --dep-path timers
+  TMRVPATH = :timers
+endif
+
 ifeq ($(CONFIG_CAPTURE),y)
   CSRCS += capture.c
 

Reply via email to