ntp: add support for SHM clocks
authorYugendra Sai Babu Nadupuru <yugendra.sai.babu.nadupuru@rockwellcollins.com>
Thu, 14 Jul 2016 21:08:02 +0000 (16:08 -0500)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 15 Jul 2016 11:11:06 +0000 (13:11 +0200)
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>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/ntp/Config.in
package/ntp/ntp.mk

index 1763225f44d5cb62477c7baf0a8efeecce3c026f..8ce9a5b0bb4ea823f94dca096468f11452e737fa 100644 (file)
@@ -19,6 +19,12 @@ config BR2_PACKAGE_NTP_NTP_KEYGEN
        help
          Create a NTP host key
 
+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_NTP_WAIT
        bool "ntp-wait"
        depends on BR2_PACKAGE_PERL
index 8d3a6f31f3fb76c6d201cf897440cf721c31063f..7d203a5e378bd9e59fb10b8371cd7dd7f969f5cc 100644 (file)
@@ -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