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

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

commit efec7da49f987ffbf34c36bc42a18174517dd96e
Author: Daniel P. Carvalho <[email protected]>
AuthorDate: Thu Sep 10 21:18:30 2026 -0300

    drivers/timers: Add TMRDEPPATH/TMRVPATH for PTP clock drivers.
    
    Every other timer driver block in this Make.defs sets TMRDEPPATH and
    TMRVPATH so DEPPATH/VPATH include this directory. CONFIG_PTP_CLOCK
    and CONFIG_PTP_CLOCK_DUMMY were the only two missing it, leaving
    ptp_clock.c/ptp_clock_dummy.c unreachable via VPATH and without a
    generated dependency file when no other timer driver in this file is
    also selected.
    
    Assisted-by: Claude:claude-sonnet-5
    Signed-off-by: Daniel P. Carvalho <[email protected]>
    (cherry picked from commit 6d3812229d1c527971bf3a2b9d7d2675796fc688)
---
 drivers/timers/Make.defs | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/timers/Make.defs b/drivers/timers/Make.defs
index fa14e5311bc..1b0bf427fb8 100644
--- a/drivers/timers/Make.defs
+++ b/drivers/timers/Make.defs
@@ -155,10 +155,14 @@ endif
 
 ifeq ($(CONFIG_PTP_CLOCK),y)
   CSRCS += ptp_clock.c
+  TMRDEPPATH = --dep-path timers
+  TMRVPATH = :timers
 endif
 
 ifeq ($(CONFIG_PTP_CLOCK_DUMMY),y)
   CSRCS += ptp_clock_dummy.c
+  TMRDEPPATH = --dep-path timers
+  TMRVPATH = :timers
 endif
 
 # Include timer build support (if any were selected)

Reply via email to