From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 29 Aug 2025 11:47:38 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1urvhr-005m2T-1g for lore@lore.pengutronix.de; Fri, 29 Aug 2025 11:47:38 +0200 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1urvhq-0006f2-NP; Fri, 29 Aug 2025 11:47:38 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1urvgc-0003vm-6R; Fri, 29 Aug 2025 11:46:22 +0200 Received: from dude05.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::54]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1urvgc-002hs4-03; Fri, 29 Aug 2025 11:46:22 +0200 Received: from mol by dude05.red.stw.pengutronix.de with local (Exim 4.98.2) (envelope-from ) id 1urvgb-0000000AzUO-44Wl; Fri, 29 Aug 2025 11:46:21 +0200 From: Michael Olbrich To: ptxdist@pengutronix.de Date: Fri, 29 Aug 2025 11:46:21 +0200 Message-ID: <20250829094621.2619637-1-m.olbrich@pengutronix.de> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250814095452.1950806-1-f.pflug@pengutronix.de> References: <20250814095452.1950806-1-f.pflug@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [ptxdist] [APPLIED] ntp: make sntp configureable 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: Fabian Pflug 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.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false Thanks, applied as 6f4351b085dd7be2a877eac808eda23af7ebe6a4. Michael [sent from post-receive hook] On Fri, 29 Aug 2025 11:46:21 +0200, Fabian Pflug wrote: > Signed-off-by: Fabian Pflug > Message-Id: <20250814095452.1950806-1-f.pflug@pengutronix.de> > Signed-off-by: Michael Olbrich > > diff --git a/rules/ntp.in b/rules/ntp.in > index 2d85c8fac018..0d80840c2a16 100644 > --- a/rules/ntp.in > +++ b/rules/ntp.in > @@ -97,6 +97,17 @@ config NTP_CRYPTO > help > FIXME: This item needs to be documented > > +config NTP_SNTP > + bool > + prompt "build SNTP" > + help > + Simple Network Time Protocol is a subset of the Network > + Time Protocol (NTP). SNTP can be used when the ultimate > + performance of a full NTP implementation based on > + RFC 1305 is neither needed nor justified. > + It is strongly recommended that SNTP be used only at > + the extremities of the synchronization subnet. > + > comment "Clock drivers" > > config NTP_ALL_CLOCK_DRIVERS > @@ -176,4 +187,3 @@ endif > > comment "NTP conflicts with OpenNTPD" > depends on NTP && OPENNTPD > - > diff --git a/rules/ntp.make b/rules/ntp.make > index 9c6c9555de07..42902364578e 100644 > --- a/rules/ntp.make > +++ b/rules/ntp.make > @@ -128,7 +128,7 @@ NTP_CONF_OPT := \ > --disable-kmem \ > --enable-accurate-adjtime \ > --disable-simulator \ > - --without-sntp \ > + --$(call ptx/wwo, PTXCONF_NTP_SNTP)-sntp \ > --without-ntpsnmpd \ > --$(call ptx/endis, PTXCONF_NTP_SLEW_ALWAYS)-slew-always \ > --$(call ptx/endis, PTXCONF_NTP_STEP_SLEW)-step-slew \ > @@ -180,6 +180,14 @@ ifdef PTXCONF_NTP_NTPD > @$(call install_alternative, ntp, 0, 0, 0644, /etc/ntp-server.conf) > endif > > +# # > +# # sntp client > +# # > +ifdef PTXCONF_NTP_SNTP > + @$(call install_copy, ntp, 0, 0, 0755, -, \ > + /usr/sbin/sntp) > +endif > + > ifdef PTXCONF_NTP_NTPD_STARTSCRIPT > @$(call install_alternative, ntp, 0, 0, 0755, /etc/init.d/ntp-server) >