summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/ntp/Config.in6
-rw-r--r--package/ntp/ntp.mk6
2 files changed, 12 insertions, 0 deletions
diff --git a/package/ntp/Config.in b/package/ntp/Config.in
index 1763225f44..8ce9a5b0bb 100644
--- a/package/ntp/Config.in
+++ b/package/ntp/Config.in
@@ -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
diff --git a/package/ntp/ntp.mk b/package/ntp/ntp.mk
index 8d3a6f31f3..7d203a5e37 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
OpenPOWER on IntegriCloud