summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Schwan <m.schwan@phytec.de>2025-07-30 10:35:31 +0200
committerKhem Raj <raj.khem@gmail.com>2025-07-30 08:03:04 -0700
commit31f0b9d3d51a65b1c3d63eb6520e7ab174a8550c (patch)
tree46afaab1c57a0b0c655f94d9bc575fc91e946c7a
parentffda36150ca18ef3b0ce5f234266897c00e51cee (diff)
downloadmeta-openembedded-31f0b9d3d51a65b1c3d63eb6520e7ab174a8550c.tar.gz
linuxptp: Add systemd instance specifier for ptp4l dependency
Add the instance specifier to the ptp4l dependency for the phc2sys service, so the corresponding service is automatically started correctly. This fixes the following error messages, when starting the phc2sys@... service: Failed to restart phc2sys@eth0.service: Unit ptp4l.service not found. Signed-off-by: Martin Schwan <m.schwan@phytec.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-connectivity/linuxptp/linuxptp/systemd/phc2sys@.service.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta-oe/recipes-connectivity/linuxptp/linuxptp/systemd/phc2sys@.service.in b/meta-oe/recipes-connectivity/linuxptp/linuxptp/systemd/phc2sys@.service.in
index f66dd2d010..7d1d975ea3 100644
--- a/meta-oe/recipes-connectivity/linuxptp/linuxptp/systemd/phc2sys@.service.in
+++ b/meta-oe/recipes-connectivity/linuxptp/linuxptp/systemd/phc2sys@.service.in
@@ -1,8 +1,8 @@
1[Unit] 1[Unit]
2Description=Synchronize system clock or PTP hardware clock (PHC) 2Description=Synchronize system clock or PTP hardware clock (PHC)
3Documentation=man:phc2sys 3Documentation=man:phc2sys
4Requires=ptp4l.service 4Requires=ptp4l@%i.service
5After=ptp4l.service 5After=ptp4l@%i.service
6Before=time-sync.target 6Before=time-sync.target
7 7
8[Service] 8[Service]