forked from openembedded/meta-openembedded
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add systemd services phc2sys@.service and ptp4l@.service, these services are taken from the Ubuntu/Debian linuxptp package. Update the recipe to install them when needed using the systemd bbclass, the services are disabled by default. Signed-off-by: Luca Fancellu <luca.fancellu@arm.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
- Loading branch information
1 parent
7112ecb
commit 65e54e3
Showing
3 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
meta-oe/recipes-connectivity/linuxptp/linuxptp/systemd/phc2sys@.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[Unit] | ||
Description=Synchronize system clock or PTP hardware clock (PHC) | ||
Documentation=man:phc2sys | ||
Requires=ptp4l.service | ||
After=ptp4l.service | ||
Before=time-sync.target | ||
|
||
[Service] | ||
Type=simple | ||
ExecStart=/usr/sbin/phc2sys -w -s %I | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
11 changes: 11 additions & 0 deletions
11
meta-oe/recipes-connectivity/linuxptp/linuxptp/systemd/ptp4l@.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[Unit] | ||
Description=Precision Time Protocol (PTP) service for %I | ||
Documentation=man:ptp4l | ||
After=sys-subsystem-net-devices-%i.device | ||
|
||
[Service] | ||
Type=simple | ||
ExecStart=/usr/sbin/ptp4l -f /etc/linuxptp/ptp4l.conf -i %I | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters