summaryrefslogtreecommitdiffstats
path: root/package/ntp
diff options
context:
space:
mode:
authorBryan Brinsko <bryan.brinsko@rockwellcollins.com>2014-10-16 12:30:54 -0500
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-10-19 17:23:31 +0200
commit7cfaff261136880fbc93f92179d5c46e1f7d4232 (patch)
treeb53f59367f6fb13b318646f4ea4436cea36a02d2 /package/ntp
parente7db4999254b64a52637cd36edeea14d9c6f6a56 (diff)
downloadbuildroot-7cfaff261136880fbc93f92179d5c46e1f7d4232.tar.gz
buildroot-7cfaff261136880fbc93f92179d5c46e1f7d4232.zip
ntp: Adding pps support to ntpd
Added an option for the ntpd application to support pps inputs. Signed-off-by: Bryan Brinsko <bryan.brinsko@rockwellcollins.com> Signed-off-by: Matt Weber <matthew.weber@rockwellcollins.com> Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/ntp')
-rw-r--r--package/ntp/Config.in7
-rw-r--r--package/ntp/ntp.mk7
2 files changed, 14 insertions, 0 deletions
diff --git a/package/ntp/Config.in b/package/ntp/Config.in
index 858a9ad8cc..c92ae93e1d 100644
--- a/package/ntp/Config.in
+++ b/package/ntp/Config.in
@@ -34,6 +34,13 @@ config BR2_PACKAGE_NTP_NTPD
system date and time in sync and optionally serving time and date
information on the network via the NTP protocol.
+config BR2_PACKAGE_NTP_NTPD_ATOM_PPS
+ bool "PPS support"
+ depends on BR2_PACKAGE_NTP_NTPD
+ select BR2_PACKAGE_PPS_TOOLS
+ help
+ Compile ntpd with the ability to use an ATOM PPS source.
+
config BR2_PACKAGE_NTP_NTPDATE
bool "ntpdate"
help
diff --git a/package/ntp/ntp.mk b/package/ntp/ntp.mk
index 7c2cb8e504..bb950a1c6a 100644
--- a/package/ntp/ntp.mk
+++ b/package/ntp/ntp.mk
@@ -34,6 +34,13 @@ else
NTP_CONF_OPTS += --without-ntpsnmpd
endif
+ifeq ($(BR2_PACKAGE_NTP_NTPD_ATOM_PPS),y)
+ NTP_CONF_OPTS += --enable-ATOM
+ NTP_DEPENDENCIES += pps-tools
+else
+ NTP_CONF_OPTS += --disable-ATOM
+endif
+
define NTP_PATCH_FIXUPS
$(SED) "s,^#if.*__GLIBC__.*_BSD_SOURCE.*$$,#if 0," $(@D)/ntpd/refclock_pcf.c
$(SED) '/[[:space:](]rindex[[:space:]]*(/s/[[:space:]]*rindex[[:space:]]*(/ strrchr(/g' $(@D)/ntpd/*.c
OpenPOWER on IntegriCloud