From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 04 Jun 2021 20:07:34 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1lpEEI-0003bx-4x for lore@lore.pengutronix.de; Fri, 04 Jun 2021 20:07:34 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1lpEEH-0004Of-Pq; Fri, 04 Jun 2021 20:07:33 +0200 Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lpEE4-0004Hv-7s; Fri, 04 Jun 2021 20:07:20 +0200 Received: from rhi by dude.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1lpEE3-0001Er-TB; Fri, 04 Jun 2021 20:07:19 +0200 From: Roland Hieber To: ptxdist@pengutronix.de Date: Fri, 4 Jun 2021 20:07:14 +0200 Message-Id: <20210604180715.4674-2-rhi@pengutronix.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210604180715.4674-1-rhi@pengutronix.de> References: <20210604180715.4674-1-rhi@pengutronix.de> MIME-Version: 1.0 Subject: [ptxdist] [PATCH v2 2/3] chrony: enable support for PPS devices X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Roland Hieber Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Signed-off-by: Roland Hieber --- 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