From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 04 Jun 2021 11:25:15 +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 1lp64p-0005e8-7R for lore@lore.pengutronix.de; Fri, 04 Jun 2021 11:25:15 +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 1lp64o-0008V5-SK; Fri, 04 Jun 2021 11:25:14 +0200 Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lp64g-0008Un-0t for ptxdist@pengutronix.de; Fri, 04 Jun 2021 11:25:06 +0200 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1lp64f-0007NI-NC for ptxdist@pengutronix.de; Fri, 04 Jun 2021 11:25:05 +0200 Date: Fri, 4 Jun 2021 11:25:05 +0200 From: Michael Olbrich To: ptxdist@pengutronix.de Message-ID: <20210604092505.GF12506@pengutronix.de> Mail-Followup-To: ptxdist@pengutronix.de References: <20210531115708.4173-1-rhi@pengutronix.de> <20210531115708.4173-2-rhi@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210531115708.4173-2-rhi@pengutronix.de> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 11:23:36 up 106 days, 12:47, 120 users, load average: 0.00, 0.07, 0.12 User-Agent: Mutt/1.10.1 (2018-07-13) Subject: Re: [ptxdist] [PATCH 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 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 On Mon, May 31, 2021 at 01:57:07PM +0200, Roland Hieber wrote: > Signed-off-by: Roland Hieber > --- > 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..5edddf5b41a0 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,--enable-pps,--disable-pps) \ Use ptx/endis. Does this work? I think we use ptx/ifdef for the other options because e.g. --enable-ipv6 does not work as expected, so we only add the --disable-ipv6. Michael > $(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 > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de