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 <danieloak@gmail.com>
(cherry picked from commit 6d3812229d1c527971bf3a2b9d7d2675796fc688)
This commit is contained in:
Daniel P. Carvalho 2026-09-10 21:18:30 -03:00 • committed by Alan C. Assis
parent 5ec51ae6d5
commit efec7da49f

View file

@ -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)