Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v3 1/1] linuxptp: new package
Date: Mon, 15 May 2017 11:40:30 +0200	[thread overview]
Message-ID: <20170515114030.0e40ace0@free-electrons.com> (raw)
In-Reply-To: <1494836789-26058-1-git-send-email-brain@jikos.cz>

Hello,

On Mon, 15 May 2017 10:26:29 +0200, Petr Kulhavy wrote:
> Add the Linux PTP Project package.
> http://linuxptp.sourceforge.net/
> 
> The sysV and systemd init scripts start the daemon in automatic mode on eth0.
> 
> Signed-off-by: Petr Kulhavy <brain@jikos.cz>

Thanks for this new iteration! A few comments below.


>  package/linuxptp/0001-adjtime-fix.patch         | 12 ++++
>  package/linuxptp/0002-ethhdr-fix.patch          | 10 ++++
>  package/linuxptp/0003-time_t-fix.patch          | 10 ++++
>  package/linuxptp/0004-clock_nanosleep-fix.patch | 74 +++++++++++++++++++++++++
>  package/linuxptp/Config.in                      | 13 +++++
>  package/linuxptp/S65ptp4l                       | 36 ++++++++++++

Everything should be named linuxptp.

>  package/linuxptp/linuxptp.hash                  |  2 +
>  package/linuxptp/linuxptp.mk                    | 38 +++++++++++++
>  package/linuxptp/ptp4l.service                  | 10 ++++

Ditto. Please search globally for every occurrence of ptp4l in your
patch, and fix the different instances to be linuxptp, i.e the name of
the package.

> diff --git a/package/linuxptp/0001-adjtime-fix.patch b/package/linuxptp/0001-adjtime-fix.patch
> new file mode 100644
> index 0000000..a892220
> --- /dev/null
> +++ b/package/linuxptp/0001-adjtime-fix.patch

All patches should have a description + Signed-off-by. Since the
upstream Linux PTP project uses Git, please create Git formatted
patches (git format-patch -N).

> +--- linuxptp-1.8/makefile.old	2017-05-15 00:41:33.370113834 +0200
> ++++ linuxptp-1.8/makefile	2017-05-15 00:41:03.710283744 +0200
> +@@ -20,7 +20,7 @@
> + DEBUG	=
> + CC	= $(CROSS_COMPILE)gcc
> + VER     = -DVER=$(version)
> +-CFLAGS	= -Wall $(VER) $(incdefs) $(DEBUG) $(EXTRA_CFLAGS)
> ++CFLAGS	+= -Wall $(VER) $(incdefs) $(DEBUG) $(EXTRA_CFLAGS)

How is this related to the clock_nanosleep() issue ?

> diff --git a/package/linuxptp/Config.in b/package/linuxptp/Config.in
> new file mode 100644
> index 0000000..7e4a77b
> --- /dev/null
> +++ b/package/linuxptp/Config.in
> @@ -0,0 +1,13 @@
> +config BR2_PACKAGE_LINUXPTP
> +	bool "Linux PTP"

Please use just the name of the package, all lowercase:

	bool "linuxptp"

> diff --git a/package/linuxptp/S65ptp4l b/package/linuxptp/S65ptp4l
> new file mode 100755
> index 0000000..50b9e96
> --- /dev/null
> +++ b/package/linuxptp/S65ptp4l
> @@ -0,0 +1,36 @@
> +#!/bin/sh
> +#
> +# Start ptp4l

ptp4l -> linuxptp (everywhere).

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

  reply	other threads:[~2017-05-15  9:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-15  8:26 [Buildroot] [PATCH v3 1/1] linuxptp: new package Petr Kulhavy
2017-05-15  9:40 ` Thomas Petazzoni [this message]
2017-05-15 11:05   ` Petr Kulhavy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170515114030.0e40ace0@free-electrons.com \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox