diff options
author | Robert Schwebel <r.schwebel@pengutronix.de> | 2016-02-16 20:14:40 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2016-02-17 08:53:08 +0100 |
commit | a4baba90a2eb5a9e9e443f3a26bf9b953bbbd881 (patch) | |
tree | 8a3c5b169d25a651662de4f9ed052ec66faa74be | |
parent | 4b80774371eb754b97f2ce23363175e7c7d32c74 (diff) | |
download | ptxdist-a4baba90a2eb5a9e9e443f3a26bf9b953bbbd881.tar.gz ptxdist-a4baba90a2eb5a9e9e443f3a26bf9b953bbbd881.tar.xz |
gptp: add new package for IEEE1588
This adds the linuxptp project. The original ptxdist rules have been
written by Steffen Trumtrar.
Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
[clean up rules, add license, version bump to 1.6]
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
[mol: white space fixes, GPL-2.0 -> GPL-2.0+]
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | projectroot/etc/gPTP.conf | 28 | ||||
-rw-r--r-- | rules/linuxptp.in | 9 | ||||
-rw-r--r-- | rules/linuxptp.make | 69 |
3 files changed, 106 insertions, 0 deletions
diff --git a/projectroot/etc/gPTP.conf b/projectroot/etc/gPTP.conf new file mode 100644 index 000000000..5bbbaf288 --- /dev/null +++ b/projectroot/etc/gPTP.conf @@ -0,0 +1,28 @@ +[global] +# +# Run time options +# +assume_two_step 1 +logging_level 6 +path_trace_enabled 1 +follow_up_info 1 +tx_timestamp_timeout 40 +use_syslog 1 +verbose 0 +summary_interval 0 +# +# Transport options +# +transportSpecific 0x1 +ptp_dst_mac 01:80:C2:00:00:0E +p2p_dst_mac 01:80:C2:00:00:0E +uds_address /var/run/ptp4l +# +# Default interface options +# +network_transport L2 +delay_mechanism P2P +time_stamping hardware + +[eth0] + diff --git a/rules/linuxptp.in b/rules/linuxptp.in new file mode 100644 index 000000000..641d844c7 --- /dev/null +++ b/rules/linuxptp.in @@ -0,0 +1,9 @@ +## SECTION=networking + +config LINUXPTP + tristate + prompt "linuxptp" + help + The Linux PTP project implements the Precision Time protocol (PTP), + standardized as IEEE1588. + diff --git a/rules/linuxptp.make b/rules/linuxptp.make new file mode 100644 index 000000000..62d249657 --- /dev/null +++ b/rules/linuxptp.make @@ -0,0 +1,69 @@ +# -*-makefile-*- +# +# Copyright (C) 2015 by Steffen Trumtrar <s.trumtrar@pengutronix.de> +# (C) 2016 by Robert Schwebel <r.schwebel@pengutronix.de> +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_LINUXPTP) += linuxptp + +# +# Paths and names +# +LINUXPTP_VERSION := 1.6 +LINUXPTP_MD5 := 6aa15d83f5a35f1fd076ba9adc4e7285 +LINUXPTP := linuxptp-$(LINUXPTP_VERSION) +LINUXPTP_SUFFIX := tgz +LINUXPTP_URL := $(call ptx/mirror, SF, linuxptp/$(LINUXPTP).$(LINUXPTP_SUFFIX)) +LINUXPTP_SOURCE := $(SRCDIR)/$(LINUXPTP).$(LINUXPTP_SUFFIX) +LINUXPTP_DIR := $(BUILDDIR)/$(LINUXPTP) +LINUXPTP_LICENSE := GPL-2.0+ + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +LINUXPTP_CONF_TOOL := NO +LINUXPTP_MAKE_OPT := \ + $(CROSS_ENV_PROGS) \ + prefix=/usr + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +LINUXPTP_INSTALL_OPT := \ + prefix=/usr \ + install + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/linuxptp.targetinstall: + @$(call targetinfo) + + @$(call install_init, linuxptp) + @$(call install_fixup, linuxptp,PRIORITY,optional) + @$(call install_fixup, linuxptp,SECTION,base) + @$(call install_fixup, linuxptp,AUTHOR,"Steffen Trumtrar <s.trumtrar@pengutronix.de>") + @$(call install_fixup, linuxptp,DESCRIPTION,missing) + + @$(call install_copy, linuxptp, 0, 0, 0755, -, /usr/sbin/ptp4l) + @$(call install_copy, linuxptp, 0, 0, 0755, -, /usr/sbin/phc2sys) + @$(call install_copy, linuxptp, 0, 0, 0755, -, /usr/sbin/pmc) + @$(call install_copy, linuxptp, 0, 0, 0755, -, /usr/sbin/hwstamp_ctl) + @$(call install_alternative, linuxptp, 0, 0, 0644, /etc/gPTP.conf) + + @$(call install_finish, linuxptp) + + @$(call touch) + +# vim: syntax=make |