ntp: Adding pps support to ntpd
authorBryan Brinsko <bryan.brinsko@rockwellcollins.com>
Thu, 16 Oct 2014 17:30:54 +0000 (12:30 -0500)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 19 Oct 2014 15:23:31 +0000 (17:23 +0200)
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>
package/ntp/Config.in
package/ntp/ntp.mk

index 858a9ad8ccb6437b060a330fe81485ede87e60e7..c92ae93e1d7f49cc7a601639f2b54bcd60930db6 100644 (file)
@@ -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
index 7c2cb8e5047278a2c80953bbdda1cbb0c2b602fd..bb950a1c6a9ae7890d46bf0e87a41e93fc914b2c 100644 (file)
@@ -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