Skip to contentSkip to conversation

ntp: enable/disable sntp support depending on BR2_PACKAGE_NTP_SNTP

PATCH New Vicente Olivert Riera 3 participants 3 messages Jun 19, 2017 – Jun 26, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ntp: enable/disable sntp support depending on BR2_PACKAGE_NTP_SNTP

We already have an option for selecting sntp support in ntp that can be chosen from the menuconfig, and ntp's configure script has a --with-sntp option (with its --without counterpart) which can be used for disabling sntp support in ntp. However, we are not using it. This patch will make use of it.

---
 package/ntp/ntp.mk | 6 ++++++
 1 file changed, 6 insertions(+)
package/ntp/ntp.mk +6 -0
index 26f58628a..c70d6e635 100644
@@ -65,6 +65,12 @@ else
 NTP_CONF_OPTS += --disable-SHM
 endif
 
+ifeq ($(BR2_PACKAGE_NTP_SNTP),y)
+NTP_CONF_OPTS += --with-sntp
+else
+NTP_CONF_OPTS += --without-sntp
+endif
+
 NTP_INSTALL_FILES_$(BR2_PACKAGE_NTP_NTP_KEYGEN) += util/ntp-keygen
 NTP_INSTALL_FILES_$(BR2_PACKAGE_NTP_NTP_WAIT) += scripts/ntp-wait/ntp-wait
 NTP_INSTALL_FILES_$(BR2_PACKAGE_NTP_NTPDATE) += ntpdate/ntpdate
Signature · 1 line
2.13.0
#1 lore raw

PATCH 1/1 ntp: enable/disable sntp support depending on BR2_PACKAGE_NTP_SNTP

Hello,

Quoted 10 lines · Vicente Olivert Riera

We already have an option for selecting sntp support in ntp that can be chosen from the menuconfig, and ntp's configure script has a --with-sntp option (with its --without counterpart) which can be used for disabling sntp support in ntp. However, we are not using it. This patch will make use of it.

---
 package/ntp/ntp.mk | 6 ++++++
 1 file changed, 6 insertions(+)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#2 lore raw

PATCH 1/1 ntp: enable/disable sntp support depending on BR2_PACKAGE_NTP_SNTP

In reply to Vicente Olivert Riera
Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Vicente" == Vicente Olivert Riera <[email protected]> writes:

We already have an option for selecting sntp support in ntp that can be chosen from the menuconfig, and ntp's configure script has a --with-sntp option (with its --without counterpart) which can be used for disabling sntp support in ntp. However, we are not using it. This patch will make use of it.

Committed to 2017.02.x and 2017.05.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard