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

v5 of 6 Superseded Latest is v6 →

lore
Share & tools
lore

Sam Nelson

author
#0 lore raw

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

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

---
Change from previous patch
* Fix issues with passing extra Cflags
---

---
 .../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..d2e39f0
@@ -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)

Ah, didn't see you sent v5 after v4, sorry...

Quoted 5 lines

---
Change from previous patch
* Fix issues with passing extra Cflags

BTW, you can keep previous patch revisions here as well, just accumulate them and say something like "Changes in v5". That's basically the Changelog of the patch itself, it won't go into git commit message... But it's not a strict requirement - it's up to you whether to keep full history of changes in the patch, or just the latest one.

Quoted 19 lines

---

---
 .../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 +7 -0
new file mode 100755
index 0000000..d2e39f0
@@ -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"

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

Quoted 10 lines
meta-arago-extras/recipes-connectivity/linuxptp/linuxptp_1.3.bb new file +10 -0
+
+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""

Are you sure you don't need to escape quotes in the middle? Or alternatively, you can use single quotes in the middle, inside outer double quotes...

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

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
#2 lore raw
Quoted 20 lines

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

Quoted 1 line · Sam Nelson

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

Ah, didn't see you sent v5 after v4, sorry...

Quoted 5 lines

---
Change from previous patch
* Fix issues with passing extra Cflags

Quoted 6 lines

BTW, you can keep previous patch revisions here as well, just accumulate them
and say something like "Changes in v5". That's basically the Changelog of the patch itself, it won't go into git commit message... But it's not a strict requirement - it's up to you whether to keep full history of changes in the patch, or just the latest one.

[Sam] Makes sense. I will try to keep the full history.

Quoted 38 lines
Quoted 4 lines

---

---
 .../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

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

Quoted 6 lines

new file mode 100755
index 0000000..d2e39f0

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"

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

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

ARCH=${TARGET_ARCH} \

Quoted 8 lines

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

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 17

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

Are you sure you don't need to escape quotes in the middle? Or alternatively,
you can use single quotes in the middle, inside outer double quotes...

[Sam] Adding the escape quotes results in error. I checked without the escape quotes the flags are passed correctly.

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

1.7.9.5

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago