* [Buildroot] [PATCH] ntp: Adding support for SHM clocks
@ 2016-07-14 21:08 Matt Weber
2016-07-15 11:18 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Matt Weber @ 2016-07-14 21:08 UTC (permalink / raw)
To: buildroot
From: ynadupur <yugendra.sai.babu.nadupuru@rockwellcollins.com>
Description:
In order for gpsd to work with the new version of ntpd, an enable option
must be added to the configure step of ntp that allows for support of
SHM Clocks to be attached through shared memory.
Signed-off-by:[YUGENDRA SAI BABU NADUPURU]<yugendra.sai.babu.nadupuru@rockwellcollins.com>
Signed-off-by: Matt Weber <matthew.weber@rockwellcollins.com>
---
package/ntp/Config.in | 6 ++++++
package/ntp/ntp.mk | 6 ++++++
2 files changed, 12 insertions(+)
diff --git a/package/ntp/Config.in b/package/ntp/Config.in
index 1763225..ad5914e 100644
--- a/package/ntp/Config.in
+++ b/package/ntp/Config.in
@@ -42,6 +42,12 @@ config BR2_PACKAGE_NTP_NTPD_ATOM_PPS
help
Compile ntpd with the ability to use an ATOM PPS source.
+config BR2_PACKAGE_NTP_NTP_SHM_CLK
+ bool "SHM clock support"
+ help
+ Compile ntp with support for a SHM clock attached through shared
+ memory.
+
config BR2_PACKAGE_NTP_NTPDATE
bool "ntpdate"
help
diff --git a/package/ntp/ntp.mk b/package/ntp/ntp.mk
index 8d3a6f3..8481bc8 100644
--- a/package/ntp/ntp.mk
+++ b/package/ntp/ntp.mk
@@ -42,6 +42,12 @@ else
NTP_CONF_OPTS += --disable-ATOM
endif
+ifeq ($(BR2_PACKAGE_NTP_NTP_SHM_CLK),y)
+ NTP_CONF_OPTS += --enable-SHM
+else
+ NTP_CONF_OPTS += --disable-SHM
+endif
+
NTP_INSTALL_FILES_$(BR2_PACKAGE_NTP_NTP_KEYGEN) += util/ntp-keygen
NTP_INSTALL_FILES_$(BR2_PACKAGE_NTP_NTP_WAIT) += scripts/ntp-wait/ntp-wait
NTP_INSTALL_FILES_$(BR2_PACKAGE_NTP_NTPDATE) += ntpdate/ntpdate
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] ntp: Adding support for SHM clocks
2016-07-14 21:08 [Buildroot] [PATCH] ntp: Adding support for SHM clocks Matt Weber
@ 2016-07-15 11:18 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2016-07-15 11:18 UTC (permalink / raw)
To: buildroot
Hello,
On Thu, 14 Jul 2016 16:08:02 -0500, Matt Weber wrote:
> From: ynadupur <yugendra.sai.babu.nadupuru@rockwellcollins.com>
This From: was obviously not properly formatted, as we want a full name.
> Description:
No need for "Description:" in the commit log.
>
> In order for gpsd to work with the new version of ntpd, an enable option
> must be added to the configure step of ntp that allows for support of
> SHM Clocks to be attached through shared memory.
The commit log shouldn't be indented.
>
> Signed-off-by:[YUGENDRA SAI BABU NADUPURU]<yugendra.sai.babu.nadupuru@rockwellcollins.com>
This was also not properly formatted.
> +config BR2_PACKAGE_NTP_NTP_SHM_CLK
> + bool "SHM clock support"
> + help
> + Compile ntp with support for a SHM clock attached through shared
> + memory.
Indentation for the help text is one tab + two spaces, not one tab +
one space.
> +ifeq ($(BR2_PACKAGE_NTP_NTP_SHM_CLK),y)
> + NTP_CONF_OPTS += --enable-SHM
We don't indent such lines.
Committed with all those minor issues fixed.
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-07-15 11:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-14 21:08 [Buildroot] [PATCH] ntp: Adding support for SHM clocks Matt Weber
2016-07-15 11:18 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox