mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Roland Hieber <rhi@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Roland Hieber <rhi@pengutronix.de>
Subject: [ptxdist] [PATCH v2 2/3] chrony: enable support for PPS devices
Date: Fri,  4 Jun 2021 20:07:14 +0200	[thread overview]
Message-ID: <20210604180715.4674-2-rhi@pengutronix.de> (raw)
In-Reply-To: <20210604180715.4674-1-rhi@pengutronix.de>

Signed-off-by: Roland Hieber <rhi@pengutronix.de>
---
v1 -> v2:
 - fix --disable-pps option

v1 was at https://lore.ptxdist.org/ptxdist/20210604092505.GF12506@pengutronix.de
---
 rules/chrony.in   | 8 ++++++++
 rules/chrony.make | 2 +-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/rules/chrony.in b/rules/chrony.in
index f50b864429b0..67a87277fc84 100644
--- a/rules/chrony.in
+++ b/rules/chrony.in
@@ -8,6 +8,7 @@ menuconfig CHRONY
 	select LIBCAP
 	select LIBSECCOMP	if CHRONY_SECCOMP
 	select NETTLE		if CHRONY_USE_NETTLE
+	select PPS_TOOLS	if CHRONY_PPS_REFCLK
 	help
 	  This will install the Chrony NTPD Daemon (chronyd)
 	  Chrony is a pair of programs which are used to maintain
@@ -44,6 +45,13 @@ config CHRONY_ADVANCED_COMMAND
 	  This allows getting advanced NTP time synchronization
 	  status monitoring from the service.
 
+config CHRONY_PPS_REFCLK
+	bool
+	prompt "Enable support for PPS devices"
+	help
+	  Pulse per second devices signal the start of every second
+	  with high precision.
+
 comment "install options   ---"
 
 config CHRONY_INSTALL_CHRONY_COMMAND
diff --git a/rules/chrony.make b/rules/chrony.make
index 7cf59f30560c..15f475d889a6 100644
--- a/rules/chrony.make
+++ b/rules/chrony.make
@@ -52,7 +52,7 @@ CHRONY_CONF_OPT		:= \
 	$(call ptx/ifdef, PTXCONF_CHRONY_ADVANCED_COMMAND,--enable-debug,) \
 	--disable-refclock \
 	--disable-phc \
-	--disable-pps \
+	$(call ptx/ifdef, PTXCONF_CHRONY_PPS_REFCLK,,--disable-pps) \
 	$(call ptx/ifdef, PTXCONF_GLOBAL_IPV6,,--disable-ipv6) \
 	--with-user=chrony \
 	$(call ptx/ifdef, PTXCONF_CHRONY_SECCOMP,--enable-scfilter,) \
-- 
2.29.2


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


  reply	other threads:[~2021-06-04 18:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-04 18:07 [ptxdist] [PATCH v2 1/3] pps-tools: new package Roland Hieber
2021-06-04 18:07 ` Roland Hieber [this message]
2021-06-16 10:35   ` [ptxdist] [APPLIED] chrony: enable support for PPS devices Michael Olbrich
2021-06-04 18:07 ` [ptxdist] [PATCH v2 3/3] chrony: fix typo Roland Hieber
2021-06-16 10:35   ` [ptxdist] [APPLIED] " Michael Olbrich
2021-06-16 10:35 ` [ptxdist] [APPLIED] pps-tools: new package Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210604180715.4674-2-rhi@pengutronix.de \
    --to=rhi@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox