summaryrefslogtreecommitdiffstats
path: root/rules/linuxptp.in
diff options
context:
space:
mode:
authorMichael Grzeschik <m.grzeschik@pengutronix.de>2017-11-29 12:24:28 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2017-12-04 10:15:10 +0100
commit1a2632e9b0f15f44790cc4c462da742c8cad8984 (patch)
tree81fa94599656b1dd66dd1a51f9ea4d044e3796d1 /rules/linuxptp.in
parent7e13ca66f7a3b72ee96195f2a4cf9b17aebfb27f (diff)
downloadptxdist-1a2632e9b0f15f44790cc4c462da742c8cad8984.tar.gz
ptxdist-1a2632e9b0f15f44790cc4c462da742c8cad8984.tar.xz
linuxptp: Update package and configs
Usualy we can not ensure only to use transparent clock switches. Therefor we stick to the default E2E request-response mechanism. The following options are highly depending on the usecase so we remove them for the defaults. path_trace_enabled follow_up_info tx_timestamp_timeout With all other options being simple defaults the whole config can be removed. We also add some service files to start the ptp4l service on dev eth0. In case the ptp4l daemon is configured we add the option to install the phc2sys daemon to adjust the system time by the ptp master. Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/linuxptp.in')
-rw-r--r--rules/linuxptp.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/rules/linuxptp.in b/rules/linuxptp.in
index 641d844c7..5418d2ad0 100644
--- a/rules/linuxptp.in
+++ b/rules/linuxptp.in
@@ -7,3 +7,15 @@ config LINUXPTP
The Linux PTP project implements the Precision Time protocol (PTP),
standardized as IEEE1588.
+if LINUXPTP
+
+config LINUXPTP_SYSTEMD_SERVICE
+ bool "install ptp4l and phc2sys systemd service files"
+ default y
+
+config LINUXPTP_PHC2SYS_SYSTEMD_SERVICE
+ bool "Enable phc2sys systemd service file"
+ default y
+ depends on LINUXPTP_SYSTEMD_SERVICE
+
+endif