openntpd: Add recipe for building OpenNTPD
PATCH v2 1/1 openntpd: Add recipe for building OpenNTPD
- OpenNTPD is a open source implementation of Network time protocol
---
Changes from previous patch
* Moved to recipes-connectivity
* Removed redundant setting of STAGING_KERNEL_DIR
---
--- .../openntpd/openntpd_3.9p1.bb | 26 ++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 meta-arago-extras/recipes-connectivity/openntpd/openntpd_3.9p1.bb
meta-arago-extras/recipes-connectivity/openntpd/openntpd_3.9p1.bb new file +26 -0
@@ -0,0 +1,26 @@ +DESCRIPTION = "OpenNTPD is a FREE, easy to use implementation of the \ +Network Time Protocol." +HOMEPAGE = "http://www.openntpd.org/" +SECTION = "console/network" +LICENSE = "BSD ISC" +LIC_FILES_CHKSUM = "file://LICENCE;md5=4b4f5158007cc97e6b0e2325bb99854a" + +DEPENDS += "virtual/kernel" +PR = "r0" + +SRC_URI = "http://mirror.ece.vt.edu/pub/OpenBSD/OpenNTPD/${P}.tar.gz" + +S = "${WORKDIR}/openntpd-${PV}" +EXTRA_OECONF = "--disable-strip" +inherit autotools + +LDFLAGS += "-lrt" +CFLAGS += "-DTI_ADD_SUPPORT_HW_TIMESTAMPING" +CPPFLAGS = "-I${STAGING_KERNEL_DIR}/include" +CPPFLAGS += "-I${STAGING_KERNEL_DIR}/arch/arm/include" + +EXTRA_OECONF += "CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" CFLAGS="${CFLAGS}" \ + --with-privsep-user=root --with-privsep-path=/${prefix}" + +SRC_URI[md5sum] = "afc34175f38d08867c1403d9008600b3" +SRC_URI[sha256sum] = "83dd7c1e8ec8b4567afe49af539271b5a73562fb7a3ca51df73eccba89ec8c49"
Signature · 1 line
1.7.9.5
Quoted 30 lines · Sam Nelson
- OpenNTPD is a open source implementation of Network time protocol
Signed-off-by Sam Nelson <[email protected]>---
Changes from previous patch
* Moved to recipes-connectivity
* Removed redundant setting ofSTAGING_KERNEL_DIR
------ .../openntpd/openntpd_3.9p1.bb | 26 ++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 meta-arago-extras/recipes-connectivity/openntpd/openntpd_3.9p1.bbmeta-arago-extras/recipes-connectivity/openntpd/openntpd_3.9p1.bb new file +10
-0@@ -0,0 +1,26 @@ +DESCRIPTION = "OpenNTPD is a FREE, easy to use implementation of the \ +Network Time Protocol." +HOMEPAGE = "http://www.openntpd.org/" +SECTION = "console/network" +LICENSE = "BSD ISC" +LIC_FILES_CHKSUM = "file://LICENCE;md5=4b4f5158007cc97e6b0e2325bb99854a" + +DEPENDS += "virtual/kernel" +PR = "r0" +
meta-arago-extras/recipes-connectivity/openntpd/openntpd_3.9p1.bb line 20
Quoted 10 lines
meta-arago-extras/recipes-connectivity/openntpd/openntpd_3.9p1.bb new file +10
-0+SRC_URI = "http://mirror.ece.vt.edu/pub/OpenBSD/OpenNTPD/${P}.tar.gz" + +S = "${WORKDIR}/openntpd-${PV}" +EXTRA_OECONF = "--disable-strip" +inherit autotools + +LDFLAGS += "-lrt" +CFLAGS += "-DTI_ADD_SUPPORT_HW_TIMESTAMPING" +CPPFLAGS = "-I${STAGING_KERNEL_DIR}/include" +CPPFLAGS += "-I${STAGING_KERNEL_DIR}/arch/arm/include"
Sam, I keep seeing you passing staged kernel location to user-space apps and daemons and I'm growing suspicious that it's not really needed... Both openntpd and linuxptp should be buildable as is w/o needing to have access to the staged kernel. Unless I'm missing something and they do use kernel headers directly (not libc provided) and you have those headers modified for your platform... Can you please elaborate here? Thanks.
Quoted 12 lines
meta-arago-extras/recipes-connectivity/openntpd/openntpd_3.9p1.bb new file +5
-0+EXTRA_OECONF += "CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" CFLAGS="${CFLAGS}" \ + --with-privsep-user=root --with-privsep-path=/${prefix}" + +SRC_URI[md5sum] = "afc34175f38d08867c1403d9008600b3" +SRC_URI[sha256sum] = "83dd7c1e8ec8b4567afe49af539271b5a73562fb7a3ca51df73eccba89ec8c49"Signature · 6 lines
1.7.9.5 _______________________________________________ meta-arago mailing list [email protected] http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Quoted 58 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Wednesday, February 12, 2014 2:38 PM
To: Nelson, Sam
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH v2] openntpd: Add recipe for building OpenNTPDQuoted 9 lines · Sam Nelson
- OpenNTPD is a open source implementation of Network time protocol
Signed-off-by Sam Nelson <[email protected]>---
Changes from previous patch
* Moved to recipes-connectivity
* Removed redundant setting ofSTAGING_KERNEL_DIR
---Quoted 4 lines
--- .../openntpd/openntpd_3.9p1.bb | 26 ++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 meta-arago-extras/recipes-connectivity/openntpd/openntpd_3.9p1.bb
Review
Quoted 2 lines
(quoted diff) +0
-0connectivity/openntpd/openntpd_3.9p1.bb b/meta-arago-extras/recipes- connectivity/openntpd/openntpd_3.9p1.bb
meta-arago-extras/recipes-
Quoted 4 lines
new file mode 100755
index 0000000..ca090e4meta-arago-extras/recipes- new file +0
-0connectivity/openntpd/openntpd_3.9p1.bb
meta-arago-extras/recipes- line 6
Quoted 7 lines
meta-arago-extras/recipes- new file +6
-0@@ -0,0 +1,26 @@ +DESCRIPTION = "OpenNTPD is a FREE, easy to use implementation of the \ +Network Time Protocol." +HOMEPAGE = "http://www.openntpd.org/" +SECTION = "console/network" +LICENSE = "BSD ISC" +LIC_FILES_CHKSUM ="file://LICENCE;md5=4b4f5158007cc97e6b0e2325bb99854a"
meta-arago-extras/recipes- line 11
Quoted 5 lines
meta-arago-extras/recipes- new file +5
-0+ +DEPENDS += "virtual/kernel" +PR = "r0" + +SRC_URI =meta-arago-extras/recipes- line 20
Quoted 9 lines
meta-arago-extras/recipes- new file +9
-0+ +S = "${WORKDIR}/openntpd-${PV}" +EXTRA_OECONF = "--disable-strip" +inherit autotools + +LDFLAGS += "-lrt" +CFLAGS += "-DTI_ADD_SUPPORT_HW_TIMESTAMPING" +CPPFLAGS = "-I${STAGING_KERNEL_DIR}/include" +CPPFLAGS += "-I${STAGING_KERNEL_DIR}/arch/arm/include"
Quoted 9 lines
Sam, I keep seeing you passing staged kernel location to user-space apps and daemons and I'm growing suspicious that it's not really needed... Both openntpd and linuxptp should be buildable as is w/o needing to have access to
the staged kernel. Unless I'm missing something and they do use kernel headers
directly (not libc provided) and you have those headers modified for your platform... Can you please elaborate here? Thanks.
[Sam] I checked on openntp and looks like the kernel reference may be unnecessary. This recipe came from tci6614 and I will check on more details. But linuxptp does depend on kernel headers.
Quoted 16 lines
meta-arago-extras/recipes- line 21
Quoted 2 lines
meta-arago-extras/recipes- new file +1
-0+EXTRA_OECONF += "CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"CFLAGS="${CFLAGS}" \
meta-arago-extras/recipes- line 25
Quoted 4 lines
meta-arago-extras/recipes- new file +4
-0+ --with-privsep-user=root --with-privsep-path=/${prefix}" + +SRC_URI[md5sum] = "afc34175f38d08867c1403d9008600b3" +SRC_URI[sha256sum] ="
83dd7c1e8ec8b4567afe49af539271b5a73562fb7a3ca51df73eccba89ec8c49"Quoted 7 lines
--
1.7.9.5_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Quoted 81 lines
-----Original Message-----
From: Nelson, Sam
Sent: Wednesday, February 12, 2014 11:03 PM
To: Dmytriyenko, Denys
Cc: [email protected]
Subject: RE: [meta-arago] [PATCH v2] openntpd: Add recipe for building OpenNTPDQuoted 8 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Wednesday, February 12, 2014 2:38 PM
To: Nelson, Sam
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH v2] openntpd: Add recipe for building OpenNTPDQuoted 12 lines
Quoted 11 lines · Sam Nelson
- OpenNTPD is a open source implementation of Network time protocol
Signed-off-by Sam Nelson <[email protected]>---
Changes from previous patch
* Moved to recipes-connectivity
* Removed redundant setting ofSTAGING_KERNEL_DIR
------ .../openntpd/openntpd_3.9p1.bb | 26++++++++++++++++++++
Quoted 7 lines
Quoted 2 lines
1 file changed, 26 insertions(+) create mode 100755 meta-arago-extras/recipes-connectivity/openntpd/openntpd_3.9p1.bb
Review
Quoted 2 lines
(quoted diff) +0
-0connectivity/openntpd/openntpd_3.9p1.bb b/meta-arago-extras/recipes- connectivity/openntpd/openntpd_3.9p1.bb
Quoted 7 lines
meta-arago-extras/recipes-
Quoted 4 lines
new file mode 100755
index 0000000..ca090e4meta-arago-extras/recipes- new file +0
-0connectivity/openntpd/openntpd_3.9p1.bb
meta-arago-extras/recipes- line 1
Quoted 2 lines
meta-arago-extras/recipes- new file +1
-0@@ -0,0 +1,26 @@ +DESCRIPTION = "OpenNTPD is a FREE, easy to use implementation ofthe \
Quoted 12 lines
meta-arago-extras/recipes- line 6
Quoted 5 lines
meta-arago-extras/recipes- new file +5
-0+Network Time Protocol." +HOMEPAGE = "http://www.openntpd.org/" +SECTION = "console/network" +LICENSE = "BSD ISC" +LIC_FILES_CHKSUM ="file://LICENCE;md5=4b4f5158007cc97e6b0e2325bb99854a"
meta-arago-extras/recipes- line 11
Quoted 5 lines
meta-arago-extras/recipes- new file +5
-0+ +DEPENDS += "virtual/kernel" +PR = "r0" + +SRC_URI =Quoted 11 lines
meta-arago-extras/recipes- line 20
Quoted 9 lines
meta-arago-extras/recipes- new file +9
-0+ +S = "${WORKDIR}/openntpd-${PV}" +EXTRA_OECONF = "--disable-strip" +inherit autotools + +LDFLAGS += "-lrt" +CFLAGS += "-DTI_ADD_SUPPORT_HW_TIMESTAMPING" +CPPFLAGS = "-I${STAGING_KERNEL_DIR}/include" +CPPFLAGS += "-I${STAGING_KERNEL_DIR}/arch/arm/include"Sam, I keep seeing you passing staged kernel location to user-space apps
and
Quoted 2 lines
daemons and I'm growing suspicious that it's not really needed... Both openntpd and linuxptp should be buildable as is w/o needing to have
access
Quoted 6 lines
to
the staged kernel. Unless I'm missing something and they do use kernel headers
directly (not libc provided) and you have those headers modified for your platform... Can you please elaborate here? Thanks.
Quoted 3 lines
[Sam] I checked on openntp and looks like the kernel reference may be unnecessary. This recipe came from tci6614 and I will check on more details. But linuxptp does depend on kernel headers.
[Sam] I was wrong, the openntp looks like does depend on H/W timestamping defines from the kernel header based on local expert here. So recipe should be pushed as is.
Quoted 17 lines
Quoted 8 lines
meta-arago-extras/recipes- line 21
Quoted 2 lines
meta-arago-extras/recipes- new file +1
-0+EXTRA_OECONF += "CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"CFLAGS="${CFLAGS}" \
meta-arago-extras/recipes- line 25
Quoted 4 lines
meta-arago-extras/recipes- new file +4
-0+ --with-privsep-user=root --with-privsep-path=/${prefix}" + +SRC_URI[md5sum] = "afc34175f38d08867c1403d9008600b3" +SRC_URI[sha256sum] ="
83dd7c1e8ec8b4567afe49af539271b5a73562fb7a3ca51df73eccba89ec8c49Quoted 8 lines
"
Quoted 7 lines
--
1.7.9.5_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Quoted 81 lines · Sam
Quoted 81 lines
-----Original Message-----
From: Nelson, Sam
Sent: Wednesday, February 12, 2014 11:03 PM
To: Dmytriyenko, Denys
Cc: [email protected]
Subject: RE: [meta-arago] [PATCH v2] openntpd: Add recipe for building OpenNTPDQuoted 8 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Wednesday, February 12, 2014 2:38 PM
To: Nelson, Sam
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH v2] openntpd: Add recipe for building OpenNTPDQuoted 12 lines
Quoted 11 lines · Sam Nelson
- OpenNTPD is a open source implementation of Network time protocol
Signed-off-by Sam Nelson <[email protected]>---
Changes from previous patch
* Moved to recipes-connectivity
* Removed redundant setting ofSTAGING_KERNEL_DIR
------ .../openntpd/openntpd_3.9p1.bb | 26++++++++++++++++++++
Quoted 7 lines
Quoted 2 lines
1 file changed, 26 insertions(+) create mode 100755 meta-arago-extras/recipes-connectivity/openntpd/openntpd_3.9p1.bb
Review
Quoted 2 lines
(quoted diff) +0
-0connectivity/openntpd/openntpd_3.9p1.bb b/meta-arago-extras/recipes- connectivity/openntpd/openntpd_3.9p1.bb
Quoted 7 lines
meta-arago-extras/recipes-
Quoted 4 lines
new file mode 100755
index 0000000..ca090e4meta-arago-extras/recipes- new file +0
-0connectivity/openntpd/openntpd_3.9p1.bb
meta-arago-extras/recipes- line 1
Quoted 2 lines
meta-arago-extras/recipes- new file +1
-0@@ -0,0 +1,26 @@ +DESCRIPTION = "OpenNTPD is a FREE, easy to use implementation ofthe \
Quoted 12 lines
meta-arago-extras/recipes- line 6
Quoted 5 lines
meta-arago-extras/recipes- new file +5
-0+Network Time Protocol." +HOMEPAGE = "http://www.openntpd.org/" +SECTION = "console/network" +LICENSE = "BSD ISC" +LIC_FILES_CHKSUM ="file://LICENCE;md5=4b4f5158007cc97e6b0e2325bb99854a"
meta-arago-extras/recipes- line 11
Quoted 5 lines
meta-arago-extras/recipes- new file +5
-0+ +DEPENDS += "virtual/kernel" +PR = "r0" + +SRC_URI =Quoted 11 lines
meta-arago-extras/recipes- line 20
Quoted 9 lines
meta-arago-extras/recipes- new file +9
-0+ +S = "${WORKDIR}/openntpd-${PV}" +EXTRA_OECONF = "--disable-strip" +inherit autotools + +LDFLAGS += "-lrt" +CFLAGS += "-DTI_ADD_SUPPORT_HW_TIMESTAMPING" +CPPFLAGS = "-I${STAGING_KERNEL_DIR}/include" +CPPFLAGS += "-I${STAGING_KERNEL_DIR}/arch/arm/include"Sam, I keep seeing you passing staged kernel location to user-space apps
and
Quoted 2 lines
daemons and I'm growing suspicious that it's not really needed... Both openntpd and linuxptp should be buildable as is w/o needing to have
access
Quoted 6 lines
to
the staged kernel. Unless I'm missing something and they do use kernel headers
directly (not libc provided) and you have those headers modified for your platform... Can you please elaborate here? Thanks.
Quoted 7 lines
Quoted 3 lines
[Sam] I checked on openntp and looks like the kernel reference may be unnecessary. This recipe came from tci6614 and I will check on more details. But linuxptp does depend on kernel headers.
[Sam] I was wrong, the openntp looks like does depend on H/W timestamping defines from the kernel header based on local expert here. So recipe should be pushed as is.
Can you please be more specific - what defines and in which files?
The reason I'm asking is that you use both of those user-space networking daemons directly from upstream w/o modifications. So, even if they do include kernel header files and require some specific defines, they work with a well defined user-space API that should exist on any other regular Linux system. And that means the headers should come from linux-libc-headers, not directly from the kernel.
Quoted 16 lines
Quoted 16 lines
Quoted 7 lines
meta-arago-extras/recipes- line 21
Quoted 1 line
meta-arago-extras/recipes- new file +1
-0+EXTRA_OECONF += "CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"CFLAGS="${CFLAGS}" \
meta-arago-extras/recipes- line 25
Quoted 4 lines
meta-arago-extras/recipes- new file +4
-0+ --with-privsep-user=root --with-privsep-path=/${prefix}" + +SRC_URI[md5sum] = "afc34175f38d08867c1403d9008600b3" +SRC_URI[sha256sum] ="
83dd7c1e8ec8b4567afe49af539271b5a73562fb7a3ca51df73eccba89ec8c49Quoted 8 lines
"
Quoted 7 lines
--
1.7.9.5_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Quoted 109 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Friday, February 14, 2014 2:02 PM
To: Nelson, Sam
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH v2] openntpd: Add recipe for building OpenNTPDQuoted 20 lines · Sam
Quoted 20 lines
-----Original Message-----
From: Nelson, Sam
Sent: Wednesday, February 12, 2014 11:03 PM
To: Dmytriyenko, Denys
Cc: [email protected]
Subject: RE: [meta-arago] [PATCH v2] openntpd: Add recipe for building OpenNTPDQuoted 8 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Wednesday, February 12, 2014 2:38 PM
To: Nelson, Sam
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH v2] openntpd: Add recipe for building OpenNTPDQuoted 2 lines
Quoted 2 lines
Quoted 2 lines · Sam Nelson
Quoted 1 line
- OpenNTPD is a open source implementation of Network time
protocol
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Signed-off-by Sam Nelson <[email protected]>---
Changes from previous patch
* Moved to recipes-connectivity
* Removed redundant setting ofSTAGING_KERNEL_DIR
------ .../openntpd/openntpd_3.9p1.bb | 26Quoted 7 lines
Quoted 7 lines
++++++++++++++++++++
Quoted 6 lines
Quoted 2 lines
1 file changed, 26 insertions(+) create mode 100755 meta-arago-extras/recipes-connectivity/openntpd/openntpd_3.9p1.bb
Review
Quoted 2 lines
(quoted diff) +0
-0connectivity/openntpd/openntpd_3.9p1.bb b/meta-arago-
extras/recipes-
Quoted 21 lines
Quoted 21 lines
Quoted 8 lines
connectivity/openntpd/openntpd_3.9p1.bb
meta-arago-extras/recipes-
Quoted 4 lines
new file mode 100755
index 0000000..ca090e4meta-arago-extras/recipes- new file +0
-0connectivity/openntpd/openntpd_3.9p1.bb
meta-arago-extras/recipes- line 1
Quoted 2 lines
meta-arago-extras/recipes- new file +1
-0@@ -0,0 +1,26 @@ +DESCRIPTION = "OpenNTPD is a FREE, easy to use implementation ofthe \
Quoted 12 lines
meta-arago-extras/recipes- line 6
Quoted 5 lines
meta-arago-extras/recipes- new file +5
-0+Network Time Protocol." +HOMEPAGE = "http://www.openntpd.org/" +SECTION = "console/network" +LICENSE = "BSD ISC" +LIC_FILES_CHKSUM ="file://LICENCE;md5=4b4f5158007cc97e6b0e2325bb99854a"
meta-arago-extras/recipes- line 11
Quoted 5 lines
meta-arago-extras/recipes- new file +5
-0+ +DEPENDS += "virtual/kernel" +PR = "r0" + +SRC_URI =Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
meta-arago-extras/recipes- line 20
Quoted 9 lines
meta-arago-extras/recipes- new file +9
-0+ +S = "${WORKDIR}/openntpd-${PV}" +EXTRA_OECONF = "--disable-strip" +inherit autotools + +LDFLAGS += "-lrt" +CFLAGS += "-DTI_ADD_SUPPORT_HW_TIMESTAMPING" +CPPFLAGS = "-I${STAGING_KERNEL_DIR}/include" +CPPFLAGS += "-I${STAGING_KERNEL_DIR}/arch/arm/include"Sam, I keep seeing you passing staged kernel location to user-space
apps
Quoted 8 lines
Quoted 8 lines
and
Quoted 2 lines
daemons and I'm growing suspicious that it's not really needed... Both openntpd and linuxptp should be buildable as is w/o needing to have
access
Quoted 4 lines
to
the staged kernel. Unless I'm missing something and they do use kernel headers
directly (not libc provided) and you have those headers modified foryour
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines
platform... Can you please elaborate here? Thanks.
[Sam] I checked on openntp and looks like the kernel reference may be unnecessary. This recipe came from tci6614 and I will check on more
details.
Quoted 3 lines
Quoted 1 line
But linuxptp does depend on kernel headers.
[Sam] I was wrong, the openntp looks like does depend on H/W
timestamping
Quoted 1 line
defines from the kernel header based on local expert here. So recipe
should
Quoted 1 line
be pushed as is.
Can you please be more specific - what defines and in which files?
Quoted 9 lines
The reason I'm asking is that you use both of those user-space networking daemons directly from upstream w/o modifications. So, even if they do include
kernel header files and require some specific defines, they work with a well defined user-space API that should exist on any other regular Linux system. And that means the headers should come from linux-libc-headers, not directly
from the kernel.
[Sam] Thanks. Looks like the dependency is on net_tstamp.h for openntp. Looks like linux-libc-headers-dev has the file already. I can remove it.
Quoted 19 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
meta-arago-extras/recipes- line 21
Quoted 2 lines
meta-arago-extras/recipes- new file +1
-0+EXTRA_OECONF += "CPPFLAGS="${CPPFLAGS}"LDFLAGS="${LDFLAGS}"
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
CFLAGS="${CFLAGS}" \
meta-arago-extras/recipes- line 25
Quoted 4 lines
meta-arago-extras/recipes- new file +4
-0+ --with-privsep-user=root --with-privsep-path=/${prefix}" + +SRC_URI[md5sum] = "afc34175f38d08867c1403d9008600b3" +SRC_URI[sha256sum] ="
83dd7c1e8ec8b4567afe49af539271b5a73562fb7a3ca51df73eccba89ec8c49Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
"
Quoted 7 lines
--
1.7.9.5_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
Quoted 118 lines · Sam
Quoted 109 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Friday, February 14, 2014 2:02 PM
To: Nelson, Sam
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH v2] openntpd: Add recipe for building OpenNTPDQuoted 20 lines · Sam
Quoted 20 lines
-----Original Message-----
From: Nelson, Sam
Sent: Wednesday, February 12, 2014 11:03 PM
To: Dmytriyenko, Denys
Cc: [email protected]
Subject: RE: [meta-arago] [PATCH v2] openntpd: Add recipe for building OpenNTPDQuoted 8 lines
-----Original Message-----
From: Dmytriyenko, Denys
Sent: Wednesday, February 12, 2014 2:38 PM
To: Nelson, Sam
Cc: [email protected]
Subject: Re: [meta-arago] [PATCH v2] openntpd: Add recipe for building OpenNTPDQuoted 2 lines
Quoted 2 lines
Quoted 2 lines · Sam Nelson
Quoted 1 line
- OpenNTPD is a open source implementation of Network time
protocol
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Signed-off-by Sam Nelson <[email protected]>---
Changes from previous patch
* Moved to recipes-connectivity
* Removed redundant setting ofSTAGING_KERNEL_DIR
------ .../openntpd/openntpd_3.9p1.bb | 26Quoted 7 lines
Quoted 7 lines
++++++++++++++++++++
Quoted 6 lines
Quoted 2 lines
1 file changed, 26 insertions(+) create mode 100755 meta-arago-extras/recipes-connectivity/openntpd/openntpd_3.9p1.bb
Review
Quoted 2 lines
(quoted diff) +0
-0connectivity/openntpd/openntpd_3.9p1.bb b/meta-arago-
extras/recipes-
Quoted 21 lines
Quoted 21 lines
Quoted 8 lines
connectivity/openntpd/openntpd_3.9p1.bb
meta-arago-extras/recipes-
Quoted 4 lines
new file mode 100755
index 0000000..ca090e4meta-arago-extras/recipes- new file +0
-0connectivity/openntpd/openntpd_3.9p1.bb
meta-arago-extras/recipes- line 1
Quoted 2 lines
meta-arago-extras/recipes- new file +1
-0@@ -0,0 +1,26 @@ +DESCRIPTION = "OpenNTPD is a FREE, easy to use implementation ofthe \
Quoted 12 lines
meta-arago-extras/recipes- line 6
Quoted 5 lines
meta-arago-extras/recipes- new file +5
-0+Network Time Protocol." +HOMEPAGE = "http://www.openntpd.org/" +SECTION = "console/network" +LICENSE = "BSD ISC" +LIC_FILES_CHKSUM ="file://LICENCE;md5=4b4f5158007cc97e6b0e2325bb99854a"
meta-arago-extras/recipes- line 11
Quoted 5 lines
meta-arago-extras/recipes- new file +5
-0+ +DEPENDS += "virtual/kernel" +PR = "r0" + +SRC_URI =Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
meta-arago-extras/recipes- line 20
Quoted 9 lines
meta-arago-extras/recipes- new file +9
-0+ +S = "${WORKDIR}/openntpd-${PV}" +EXTRA_OECONF = "--disable-strip" +inherit autotools + +LDFLAGS += "-lrt" +CFLAGS += "-DTI_ADD_SUPPORT_HW_TIMESTAMPING" +CPPFLAGS = "-I${STAGING_KERNEL_DIR}/include" +CPPFLAGS += "-I${STAGING_KERNEL_DIR}/arch/arm/include"Sam, I keep seeing you passing staged kernel location to user-space
apps
Quoted 8 lines
Quoted 8 lines
and
Quoted 2 lines
daemons and I'm growing suspicious that it's not really needed... Both openntpd and linuxptp should be buildable as is w/o needing to have
access
Quoted 4 lines
to
the staged kernel. Unless I'm missing something and they do use kernel headers
directly (not libc provided) and you have those headers modified foryour
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines
platform... Can you please elaborate here? Thanks.
[Sam] I checked on openntp and looks like the kernel reference may be unnecessary. This recipe came from tci6614 and I will check on more
details.
Quoted 3 lines
Quoted 1 line
But linuxptp does depend on kernel headers.
[Sam] I was wrong, the openntp looks like does depend on H/W
timestamping
Quoted 1 line
defines from the kernel header based on local expert here. So recipe
should
Quoted 1 line
be pushed as is.
Can you please be more specific - what defines and in which files?
Quoted 9 lines
The reason I'm asking is that you use both of those user-space networking daemons directly from upstream w/o modifications. So, even if they do include
kernel header files and require some specific defines, they work with a well defined user-space API that should exist on any other regular Linux system. And that means the headers should come from linux-libc-headers, not directly
from the kernel.
Quoted 2 lines
[Sam] Thanks. Looks like the dependency is on
net_tstamp.hfor openntp. Looks like linux-libc-headers-dev has the file already. I can remove it.
Good, then it means nothing special needs to be done and no need to pass staged kernel location. Please also check linuxptp recipe. Thanks.
Quoted 18 lines
Quoted 18 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
meta-arago-extras/recipes- line 21
Quoted 1 line
meta-arago-extras/recipes- new file +1
-0+EXTRA_OECONF += "CPPFLAGS="${CPPFLAGS}"LDFLAGS="${LDFLAGS}"
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
CFLAGS="${CFLAGS}" \
meta-arago-extras/recipes- line 25
Quoted 4 lines
meta-arago-extras/recipes- new file +4
-0+ --with-privsep-user=root --with-privsep-path=/${prefix}" + +SRC_URI[md5sum] = "afc34175f38d08867c1403d9008600b3" +SRC_URI[sha256sum] ="
83dd7c1e8ec8b4567afe49af539271b5a73562fb7a3ca51df73eccba89ec8c49Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
"
Quoted 7 lines
--
1.7.9.5_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago