summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Luebbe <jlu@pengutronix.de>2016-09-01 13:51:20 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2016-09-02 13:53:41 +0200
commit4ed183ce4346ec8d3c19bff8c30b688423b50be1 (patch)
tree4c29a0e0539eea0ca890992be34b8a65593d905e
parent3c3a664472e399b0609d6e71cb6028b7758c1685 (diff)
downloadptxdist-4ed183ce4346ec8d3c19bff8c30b688423b50be1.tar.gz
ptxdist-4ed183ce4346ec8d3c19bff8c30b688423b50be1.tar.xz
ntp: add option to install ntptime
Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/ntp.in8
-rw-r--r--rules/ntp.make8
2 files changed, 16 insertions, 0 deletions
diff --git a/rules/ntp.in b/rules/ntp.in
index dc244a1c9..b8fdca23e 100644
--- a/rules/ntp.in
+++ b/rules/ntp.in
@@ -260,6 +260,14 @@ config NTP_NTPQ
The ntpq utility program is used to monitor NTP daemon ntpd
operations and determine performance.
+config NTP_NTPTIME
+ bool
+ prompt "install ntptime"
+ depends on NTP
+ help
+ The ntptime utility program is used to read the kernel's NTP time
+ variables.
+
endif
comment "NTP conflicts with OpenNTPD"
diff --git a/rules/ntp.make b/rules/ntp.make
index 1f7bc3eae..3a9677aa1 100644
--- a/rules/ntp.make
+++ b/rules/ntp.make
@@ -366,6 +366,14 @@ ifdef PTXCONF_NTP_NTPQ
endif
# #
+# # ntptime
+# #
+ifdef PTXCONF_NTP_NTPTIME
+ @$(call install_copy, ntp, 0, 0, 0755, -, \
+ /usr/sbin/ntptime)
+endif
+
+# #
# # other dirs
# #
@$(call install_copy, ntp, 0, 0, 0755, /var/log/ntpstats)