All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Precision Time Protocol (PTP) as defined by the IEEE 1588 standard
@ 2009-11-12 15:49 Jaap de Jong
  2009-11-12 17:04 ` Phil Blundell
  2009-11-12 17:19 ` Michael 'Mickey' Lauer
  0 siblings, 2 replies; 6+ messages in thread
From: Jaap de Jong @ 2009-11-12 15:49 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 314 bytes --]

Hi there,

attached a proposal for a recipe for building the 
Precision Time Protocol daemon (ptpd).

Suggestions by Michael Smith:
> 
> You are also missing the addition to checksums.ini, and maybe a line to 
> install the manpage so the doc package gets built.
> 
are hacked into it

Jaap de Jong


[-- Attachment #2: 0001-Precision-Time-Protocol.patch --]
[-- Type: text/x-patch, Size: 1657 bytes --]


Precision Time protocol (IEEE 1588)

---
 conf/checksums.ini         |    4 ++++
 recipes/ptpd/ptpd_1.0.0.bb |   16 +++++++++++++++
 2 files changed, 20 insertions(+), 0 deletions(-)
 create mode 100644 recipes/ptpd/ptpd_1.0.0.bb

diff --git a/conf/checksums.ini b/conf/checksums.ini
index a8c8263..cf8a275 100644
--- a/conf/checksums.ini
+++ b/conf/checksums.ini
@@ -20774,6 +20774,10 @@ sha256=22eae4f6c72247f8ac79c57ce4469797ad3df67614758c5096b7ce9290bd10b4
 md5=db7fd581b66998cd76d96f8b7c3f22a1
 sha256=78e290d3cf78d4dc15c7397b0edd138b4d29cf2ad0a7311bfc1c4dfb88f2a400
 
+[http://downloads.sourceforge.net/project/ptpd/ptpd/1.0.0/ptpd-1.0.0.tar.gz]
+md5=b112b2bedc7f6e6e11a838608b9e0357
+sha256=8ac1fdcad1e246b0395097dd9af29966c6823533d7e6989aae91506048fb51bc
+
 [http://pypi.python.org/packages/source/p/ptrace/ptrace-0.3.2.tar.gz]
 md5=8108c2474bef16d126e956dce3c5073b
 sha256=634fe75e195179adafb6218040724f38252bd0fc8f796bb3e3e9bdba065890c5
diff --git a/recipes/ptpd/ptpd_1.0.0.bb b/recipes/ptpd/ptpd_1.0.0.bb
new file mode 100644
index 0000000..3737d63
--- /dev/null
+++ b/recipes/ptpd/ptpd_1.0.0.bb
@@ -0,0 +1,16 @@
+# ptpd build file
+LICENSE="BSD"
+DESCRIPTION="Precision Time Protocol (PTP) as defined by the IEEE 1588 standard"
+HOMEPAGE="http://sourceforge.net/projects/ptpd"
+
+SRC_URI = "http://downloads.sourceforge.net/project/ptpd/ptpd/${PV}/ptpd-${PV}.tar.gz" 
+
+S="${WORKDIR}/ptpd-${PV}/src"
+PR = "r0"
+
+do_install() {
+        install -d ${D}${bindir} ${D}${mandir}/man8
+        install -m 4555 ptpd ${D}${bindir}
+        install -m 644 ptpd.8 ${D}${mandir}/man8
+}
+
-- 
1.6.3.3


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] Precision Time Protocol (PTP) as defined by the IEEE 1588 standard
  2009-11-12 15:49 [PATCH] Precision Time Protocol (PTP) as defined by the IEEE 1588 standard Jaap de Jong
@ 2009-11-12 17:04 ` Phil Blundell
  2009-11-12 17:19 ` Michael 'Mickey' Lauer
  1 sibling, 0 replies; 6+ messages in thread
From: Phil Blundell @ 2009-11-12 17:04 UTC (permalink / raw)
  To: openembedded-devel

On Thu, 2009-11-12 at 16:49 +0100, Jaap de Jong wrote:
> Hi there,
> 
> attached a proposal for a recipe for building the 
> Precision Time Protocol daemon (ptpd).

Thanks for the patch.  I checked this in.

p.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] Precision Time Protocol (PTP) as defined by the IEEE 1588 standard
  2009-11-12 15:49 [PATCH] Precision Time Protocol (PTP) as defined by the IEEE 1588 standard Jaap de Jong
  2009-11-12 17:04 ` Phil Blundell
@ 2009-11-12 17:19 ` Michael 'Mickey' Lauer
  2009-11-13 10:34   ` Jaap de Jong
  1 sibling, 1 reply; 6+ messages in thread
From: Michael 'Mickey' Lauer @ 2009-11-12 17:19 UTC (permalink / raw)
  To: openembedded-devel

Hi Jaap,

thanks for your patch. 

Some additional style comments:

1.) Please use SOURCEFORGE_MIRROR in SRC_URI
2.) Please use whitespace around the assignment operator
3.) Please check the OE wiki for recommended metadata ordering.

Unfortunately ptpd doesn't build for me. It bails out with:

ERROR: function do_compile failed
ERROR: log data follows
(/local/pkg/oe/om-gta02/tmp/work/armv4t-oe-linux-gnueabi/ptpd-1.0.0-r0/temp/log.do_compile.29312)
| NOTE: make -j3 -e MAKEFLAGS=
| ccache arm-oe-linux-gnueabi-gcc -march=armv4t -mtune=arm920t
-mthumb-interwork -mthumb -c
-isystem/local/pkg/oe/om-gta02/tmp/staging/armv4t-oe-linux-gnueabi/usr/include -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -isystem/local/pkg/oe/om-gta02/tmp/staging/armv4t-oe-linux-gnueabi/usr/include -o ptpd.o ptpd.c
| ccache arm-oe-linux-gnueabi-gcc -march=armv4t -mtune=arm920t
-mthumb-interwork -mthumb -c
-isystem/local/pkg/oe/om-gta02/tmp/staging/armv4t-oe-linux-gnueabi/usr/include -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -isystem/local/pkg/oe/om-gta02/tmp/staging/armv4t-oe-linux-gnueabi/usr/include -o arith.o arith.c
| ccache arm-oe-linux-gnueabi-gcc -march=armv4t -mtune=arm920t
-mthumb-interwork -mthumb -c
-isystem/local/pkg/oe/om-gta02/tmp/staging/armv4t-oe-linux-gnueabi/usr/include -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -isystem/local/pkg/oe/om-gta02/tmp/staging/armv4t-oe-linux-gnueabi/usr/include -o bmc.o bmc.c
| arith.c: In function 'fromInternalTime':
| arith.c:46: error: 'INT_MAX' undeclared (first use in this function)
| arith.c:46: error: (Each undeclared identifier is reported only once
| arith.c:46: error: for each function it appears in.)
| arith.c: In function 'toInternalTime':
| arith.c:64: error: 'INT_MAX' undeclared (first use in this function)
| make: *** [arith.o] Error 1
| make: *** Waiting for unfinished jobs....
| FATAL: oe_runmake failed

Any idea about that?

-- 
:M:




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] Precision Time Protocol (PTP) as defined by the IEEE 1588 standard
  2009-11-12 17:19 ` Michael 'Mickey' Lauer
@ 2009-11-13 10:34   ` Jaap de Jong
  0 siblings, 0 replies; 6+ messages in thread
From: Jaap de Jong @ 2009-11-13 10:34 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 2404 bytes --]

Hi Mickey,

Thanks for your suggestions. 
Attached the changed patch.

Regarding your error; I've seen it before somewhere else, i can't
remember where and worse, I can't remember how I fixed it...
Perhaps someone else can shine a light here?


On Thu, 2009-11-12 at 18:19 +0100, Michael 'Mickey' Lauer wrote:
> Hi Jaap,
> 
> thanks for your patch. 
> 
> Some additional style comments:
> 
> 1.) Please use SOURCEFORGE_MIRROR in SRC_URI
> 2.) Please use whitespace around the assignment operator
> 3.) Please check the OE wiki for recommended metadata ordering.
> 
> Unfortunately ptpd doesn't build for me. It bails out with:
> 
> ERROR: function do_compile failed
> ERROR: log data follows
> (/local/pkg/oe/om-gta02/tmp/work/armv4t-oe-linux-gnueabi/ptpd-1.0.0-r0/temp/log.do_compile.29312)
> | NOTE: make -j3 -e MAKEFLAGS=
> | ccache arm-oe-linux-gnueabi-gcc -march=armv4t -mtune=arm920t
> -mthumb-interwork -mthumb -c
> -isystem/local/pkg/oe/om-gta02/tmp/staging/armv4t-oe-linux-gnueabi/usr/include -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -isystem/local/pkg/oe/om-gta02/tmp/staging/armv4t-oe-linux-gnueabi/usr/include -o ptpd.o ptpd.c
> | ccache arm-oe-linux-gnueabi-gcc -march=armv4t -mtune=arm920t
> -mthumb-interwork -mthumb -c
> -isystem/local/pkg/oe/om-gta02/tmp/staging/armv4t-oe-linux-gnueabi/usr/include -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -isystem/local/pkg/oe/om-gta02/tmp/staging/armv4t-oe-linux-gnueabi/usr/include -o arith.o arith.c
> | ccache arm-oe-linux-gnueabi-gcc -march=armv4t -mtune=arm920t
> -mthumb-interwork -mthumb -c
> -isystem/local/pkg/oe/om-gta02/tmp/staging/armv4t-oe-linux-gnueabi/usr/include -fexpensive-optimizations -fomit-frame-pointer -frename-registers -Os -isystem/local/pkg/oe/om-gta02/tmp/staging/armv4t-oe-linux-gnueabi/usr/include -o bmc.o bmc.c
> | arith.c: In function 'fromInternalTime':
> | arith.c:46: error: 'INT_MAX' undeclared (first use in this function)
> | arith.c:46: error: (Each undeclared identifier is reported only once
> | arith.c:46: error: for each function it appears in.)
> | arith.c: In function 'toInternalTime':
> | arith.c:64: error: 'INT_MAX' undeclared (first use in this function)
> | make: *** [arith.o] Error 1
> | make: *** Waiting for unfinished jobs....
> | FATAL: oe_runmake failed
> 
> Any idea about that?
> 


[-- Attachment #2: 0001-Precision-Time-Protocol.patch --]
[-- Type: text/x-patch, Size: 1620 bytes --]


Precision Time protocol (IEEE 1588)

---
 conf/checksums.ini         |    4 ++++
 recipes/ptpd/ptpd_1.0.0.bb |   14 ++++++++++++++
 2 files changed, 18 insertions(+), 0 deletions(-)
 create mode 100644 recipes/ptpd/ptpd_1.0.0.bb

diff --git a/conf/checksums.ini b/conf/checksums.ini
index a8c8263..cf8a275 100644
--- a/conf/checksums.ini
+++ b/conf/checksums.ini
@@ -20774,6 +20774,10 @@ sha256=22eae4f6c72247f8ac79c57ce4469797ad3df67614758c5096b7ce9290bd10b4
 md5=db7fd581b66998cd76d96f8b7c3f22a1
 sha256=78e290d3cf78d4dc15c7397b0edd138b4d29cf2ad0a7311bfc1c4dfb88f2a400
 
+[http://downloads.sourceforge.net/ptpd/ptpd-1.0.0.tar.gz]
+md5=b112b2bedc7f6e6e11a838608b9e0357
+sha256=8ac1fdcad1e246b0395097dd9af29966c6823533d7e6989aae91506048fb51bc
+
 [http://pypi.python.org/packages/source/p/ptrace/ptrace-0.3.2.tar.gz]
 md5=8108c2474bef16d126e956dce3c5073b
 sha256=634fe75e195179adafb6218040724f38252bd0fc8f796bb3e3e9bdba065890c5
diff --git a/recipes/ptpd/ptpd_1.0.0.bb b/recipes/ptpd/ptpd_1.0.0.bb
new file mode 100644
index 0000000..3737d63
--- /dev/null
+++ b/recipes/ptpd/ptpd_1.0.0.bb
@@ -0,0 +1,14 @@
+DESCRIPTION = "Precision Time protocol (PTP) as defined by the IEEE 1588 standard"
+LICENSE = "BSD"
+HOMEPAGE = "http://sourceforge.net/projects/ptpd"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/ptpd/ptpd-${PV}.tar.gz" 
+
+S = "${WORKDIR}/ptpd-${PV}/src"
+PR = "r0"
+
+do_install() {                            
+        install -d ${D}${bindir} ${D}${mandir}/man8
+        install -m 4555 ptpd ${D}${bindir}
+        install -m 644 ptpd.8 ${D}${mandir}/man8
+}
-- 
1.6.3.3


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] Precision Time Protocol (PTP) as defined by the IEEE 1588 standard
  2009-11-09 12:50 Jaap de Jong
@ 2009-11-09 14:13 ` Michael Smith
  0 siblings, 0 replies; 6+ messages in thread
From: Michael Smith @ 2009-11-09 14:13 UTC (permalink / raw)
  To: openembedded-devel

Jaap de Jong wrote:
> Hi there,
> 
> attached a proposal for a recipe for building the 
> Precision Time Protocol daemon (ptpd).

Hi Jaap,

The recipe looks good, although I think either your mailer or editor did 
something very strange to the line after "do_install() {".

Could you check the file and try to send it again using git send-email?

http://morefedora.blogspot.com/2009/02/configuring-git-send-email-to-use-gmail.html

http://felipec.wordpress.com/2009/10/25/git-send-email-tricks/

You are also missing the addition to checksums.ini, and maybe a line to 
install the manpage so the doc package gets built.

Also, from the README it looks like this package can't actually be used 
without obtaining a patent license from the IEEE, but I guess that's 
someone else's problem. :)

Mike



^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH] Precision Time Protocol (PTP) as defined by the IEEE 1588 standard
@ 2009-11-09 12:50 Jaap de Jong
  2009-11-09 14:13 ` Michael Smith
  0 siblings, 1 reply; 6+ messages in thread
From: Jaap de Jong @ 2009-11-09 12:50 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 119 bytes --]

Hi there,

attached a proposal for a recipe for building the 
Precision Time Protocol daemon (ptpd).


Jaap



[-- Attachment #2: 0001-Precision-Time-Protocol.patch --]
[-- Type: text/x-patch, Size: 944 bytes --]


Precision Time protocol (IEEE 1588)

---
 recipes/ptpd/ptpd_1.0.0.bb |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)
 create mode 100644 recipes/ptpd/ptpd_1.0.0.bb

diff --git a/recipes/ptpd/ptpd_1.0.0.bb b/recipes/ptpd/ptpd_1.0.0.bb
new file mode 100644
index 0000000..3737d63
--- /dev/null
+++ b/recipes/ptpd/ptpd_1.0.0.bb
@@ -0,0 +1,15 @@
+# ptpd build file
+LICENSE="BSD"
+DESCRIPTION="Precision Time Protocol (PTP) as defined by the IEEE 1588 standard"
+HOMEPAGE="http://sourceforge.net/projects/ptpd"
+
+SRC_URI = "http://downloads.sourceforge.net/project/ptpd/ptpd/${PV}/ptpd-${PV}.tar.gz" 
+
+S="${WORKDIR}/ptpd-${PV}/src"
+PR = "r0"
+
+do_install() {                                                                                                                                               
+	install -d ${D}${bindir}
+	install -m 4555 ptpd ${D}${bindir}
+}
+
-- 
1.6.3.3


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-11-13 10:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-12 15:49 [PATCH] Precision Time Protocol (PTP) as defined by the IEEE 1588 standard Jaap de Jong
2009-11-12 17:04 ` Phil Blundell
2009-11-12 17:19 ` Michael 'Mickey' Lauer
2009-11-13 10:34   ` Jaap de Jong
  -- strict thread matches above, loose matches on Subject: below --
2009-11-09 12:50 Jaap de Jong
2009-11-09 14:13 ` Michael Smith

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.