From efec7da49f987ffbf34c36bc42a18174517dd96e Mon Sep 17 00:00:00 2001 From: "Daniel P. Carvalho" Date: Thu, 10 Sep 2026 21:18:30 -0300 Subject: [PATCH] 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 (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)