Skip to contentSkip to conversation

linuxptp: Add recipe for linux ptp

PATCH Superseded Sam Nelson 2 participants 3 messages Mar 2, 2014 – Mar 4, 2014

v4 of 6 Superseded Latest is v6 →

lore
Share & tools
lore

Sam Nelson

author
#0 lore raw

PATCH v4 1/1 linuxptp: Add recipe for linux ptp

- linuxptp is an implementation of precision time protocol (PTP)

---
Change from previous patch
* Removed dependency on kernel
* Added flags for CLOCKADJTIME & ONESTEPSYNC
---

---
 .../recipes-connectivity/linuxptp/linuxptp_1.3.bb  |   23 ++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100755 meta-arago-extras/recipes-connectivity/linuxptp/linuxptp_1.3.bb
meta-arago-extras/recipes-connectivity/linuxptp/linuxptp_1.3.bb new file +23 -0
new file mode 100755
index 0000000..0a36631
@@ -0,0 +1,23 @@
+DESCRIPTION = "This software is an implementation of the Precision Time Protocol (PTP) \
+according to IEEE standard 1588 for Linux"
+HOMEPAGE = "http://linuxptp.sourceforge.net/"
+SECTION = "console/network"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
+PR = "r0"
+
+SRC_URI = "http://iweb.dl.sourceforge.net/project/linuxptp/v${PV}/linuxptp-${PV}.tgz"
+SRC_URI[md5sum] = "664706a86fe1413391d4536080548501"
+SRC_URI[sha256sum] = "b1651186689ef06e56add506bd9bb55a700ca56e3f92ba71d08f3ad12fad3085"
+
+inherit autotools 
+
+EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX} ARCH=${TARGET_ARCH} \
+		EXTRA_CFLAGS=\"-D_GNU_SOURCE -DHAVE_CLOCK_ADJTIME \
+		-DHAVE_ONESTEP_SYNC\""
+
+do_install() {
+	install -d ${D}${bindir}/
+	install -c -m 755 ${S}/ptp4l ${D}${bindir}/
+}
+
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 1 line · Sam Nelson

- linuxptp is an implementation of precision time protocol (PTP)

Much better! Sorry, couple of comments I missed the last time.

meta-arago-extras/recipes-connectivity/linuxptp/linuxptp_1.3.bb

Quoted 17 lines

---
Change from previous patch
* Removed dependency on kernel
* Added flags for CLOCKADJTIME & ONESTEPSYNC
---

---
 .../recipes-connectivity/linuxptp/linuxptp_1.3.bb  |   23 ++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100755 meta-arago-extras/recipes-connectivity/linuxptp/linuxptp_1.3.bb
meta-arago-extras/recipes-connectivity/linuxptp/linuxptp_1.3.bb new file +0 -0
new file mode 100755
index 0000000..0a36631

The latest version is 1.4 and you are adding 1.3 - I only checked 1.4, but don't think it changed that much. Do you specifically need 1.3 or 1.4 will also work?

Quoted 4 lines
meta-arago-extras/recipes-connectivity/linuxptp/linuxptp_1.3.bb new file +3 -0
@@ -0,0 +1,23 @@
+DESCRIPTION = "This software is an implementation of the Precision Time Protocol (PTP) \
+according to IEEE standard 1588 for Linux"
+HOMEPAGE = "http://linuxptp.sourceforge.net/"

meta-arago-extras/recipes-connectivity/linuxptp/linuxptp_1.3.bb line 13

Quoted 10 lines
meta-arago-extras/recipes-connectivity/linuxptp/linuxptp_1.3.bb new file +10 -0
+SECTION = "console/network"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
+PR = "r0"
+
+SRC_URI = "http://iweb.dl.sourceforge.net/project/linuxptp/v${PV}/linuxptp-${PV}.tgz"
+SRC_URI[md5sum] = "664706a86fe1413391d4536080548501"
+SRC_URI[sha256sum] = "b1651186689ef06e56add506bd9bb55a700ca56e3f92ba71d08f3ad12fad3085"
+
+inherit autotools 

I didn't see any autotools file in the package - no configure script, no Makefile.am, no acinclude.m4 etc., etc.

meta-arago-extras/recipes-connectivity/linuxptp/linuxptp_1.3.bb line 22

Quoted 8 lines
meta-arago-extras/recipes-connectivity/linuxptp/linuxptp_1.3.bb new file +8 -0
+EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX} ARCH=${TARGET_ARCH} \
+		EXTRA_CFLAGS=\"-D_GNU_SOURCE -DHAVE_CLOCK_ADJTIME \
+		-DHAVE_ONESTEP_SYNC\""
+
+do_install() {
+	install -d ${D}${bindir}/
+	install -c -m 755 ${S}/ptp4l ${D}${bindir}/
+}

Other than that, looks much cleaner. If you are tired re-iterating it, just answer my 2 questions above and I'll make the amends myself when applying your patch...

Signature · 1 line
Denys
#2 lore raw
Quoted 32 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Monday, March 03, 2014 9:54 PM
To: Nelson, Sam
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH v4] linuxptp: Add recipe for linux ptp

Quoted 1 line · Sam Nelson

- linuxptp is an implementation of precision time protocol (PTP)

Much better! Sorry, couple of comments I missed the last time.

Quoted 9 lines

---
Change from previous patch
* Removed dependency on kernel
* Added flags for CLOCKADJTIME & ONESTEPSYNC
---

---
 .../recipes-connectivity/linuxptp/linuxptp_1.3.bb  |   23

++++++++++++++++++++

Quoted 2 lines
 1 file changed, 23 insertions(+)
 create mode 100755 meta-arago-extras/recipes-

connectivity/linuxptp/linuxptp_1.3.bb

Review

Quoted 2 lines
(quoted diff) +0 -0

connectivity/linuxptp/linuxptp_1.3.bb b/meta-arago-extras/recipes- connectivity/linuxptp/linuxptp_1.3.bb

Quoted 8 lines

meta-arago-extras/recipes-connectivity/linuxptp/linuxptp_1.3.bb

Quoted 4 lines

new file mode 100755
index 0000000..0a36631

meta-arago-extras/recipes-connectivity/linuxptp/linuxptp_1.3.bb new file +0 -0

The latest version is 1.4 and you are adding 1.3 - I only checked 1.4, but don't think it changed that much. Do you specifically need 1.3 or 1.4 will also work?

[Sam] Currently system tested with 1.3. Probably will consider 1.4 later. Is that Ok?

Quoted 19 lines

meta-arago-extras/recipes-connectivity/linuxptp/linuxptp_1.3.bb line 1

Quoted 4 lines
meta-arago-extras/recipes-connectivity/linuxptp/linuxptp_1.3.bb new file +1 -0
@@ -0,0 +1,23 @@
+DESCRIPTION = "This software is an implementation of the Precision Time

Protocol (PTP) \

meta-arago-extras/recipes-connectivity/linuxptp/linuxptp_1.3.bb

Quoted 5 lines
meta-arago-extras/recipes-connectivity/linuxptp/linuxptp_1.3.bb new file +5 -0
+according to IEEE standard 1588 for Linux"
+HOMEPAGE = "http://linuxptp.sourceforge.net/"
+SECTION = "console/network"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM =

"file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"

meta-arago-extras/recipes-connectivity/linuxptp/linuxptp_1.3.bb

Quoted 3 lines
meta-arago-extras/recipes-connectivity/linuxptp/linuxptp_1.3.bb new file +3 -0
+PR = "r0"
+
+SRC_URI =

"http://iweb.dl.sourceforge.net/project/linuxptp/v${PV}/linuxptp-${PV}.tgz"

meta-arago-extras/recipes-connectivity/linuxptp/linuxptp_1.3.bb line 11

Quoted 2 lines
meta-arago-extras/recipes-connectivity/linuxptp/linuxptp_1.3.bb new file +2 -0
+SRC_URI[md5sum] = "664706a86fe1413391d4536080548501"
+SRC_URI[sha256sum] =

"b1651186689ef06e56add506bd9bb55a700ca56e3f92ba71d08f3ad12fad30 85"

Quoted 5 lines

meta-arago-extras/recipes-connectivity/linuxptp/linuxptp_1.3.bb line 13

Quoted 2 lines
meta-arago-extras/recipes-connectivity/linuxptp/linuxptp_1.3.bb new file +2 -0
+
+inherit autotools

I didn't see any autotools file in the package - no configure script, no Makefile.am, no acinclude.m4 etc., etc.

[Sam] I guess this can be removed.

Quoted 20 lines

meta-arago-extras/recipes-connectivity/linuxptp/linuxptp_1.3.bb line 14

Quoted 3 lines
meta-arago-extras/recipes-connectivity/linuxptp/linuxptp_1.3.bb new file +1 -0
+EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX}

ARCH=${TARGET_ARCH} \

meta-arago-extras/recipes-connectivity/linuxptp/linuxptp_1.3.bb line 15

Quoted 1 line
meta-arago-extras/recipes-connectivity/linuxptp/linuxptp_1.3.bb new file +1 -0
+		EXTRA_CFLAGS=\"-D_GNU_SOURCE -

DHAVE_CLOCK_ADJTIME \

meta-arago-extras/recipes-connectivity/linuxptp/linuxptp_1.3.bb line 22

Quoted 6 lines
meta-arago-extras/recipes-connectivity/linuxptp/linuxptp_1.3.bb new file +6 -0
+		-DHAVE_ONESTEP_SYNC\""
+
+do_install() {
+	install -d ${D}${bindir}/
+	install -c -m 755 ${S}/ptp4l ${D}${bindir}/
+}

Other than that, looks much cleaner. If you are tired re-iterating it, just answer my 2 questions above and I'll make the amends myself when applying your
patch...

--
Denys