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>
This commit is contained in:
parent
e7db499925
commit
7cfaff2611
|
@ -34,6 +34,13 @@ config BR2_PACKAGE_NTP_NTPD
|
||||||
system date and time in sync and optionally serving time and date
|
system date and time in sync and optionally serving time and date
|
||||||
information on the network via the NTP protocol.
|
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
|
config BR2_PACKAGE_NTP_NTPDATE
|
||||||
bool "ntpdate"
|
bool "ntpdate"
|
||||||
help
|
help
|
||||||
|
|
|
@ -34,6 +34,13 @@ else
|
||||||
NTP_CONF_OPTS += --without-ntpsnmpd
|
NTP_CONF_OPTS += --without-ntpsnmpd
|
||||||
endif
|
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
|
define NTP_PATCH_FIXUPS
|
||||||
$(SED) "s,^#if.*__GLIBC__.*_BSD_SOURCE.*$$,#if 0," $(@D)/ntpd/refclock_pcf.c
|
$(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
|
$(SED) '/[[:space:](]rindex[[:space:]]*(/s/[[:space:]]*rindex[[:space:]]*(/ strrchr(/g' $(@D)/ntpd/*.c
|
||||||
|
|
Loading…
Reference in New Issue