diff mbox

ntp: enable/disable sntp support depending on BR2_PACKAGE_NTP_SNTP

Message ID 20170619143325.19089-1-Vincent.Riera@imgtec.com
State Accepted
Headers show

Commit Message

Vicente Olivert Riera June 19, 2017, 2:33 p.m. UTC
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.

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
---
 package/ntp/ntp.mk | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Thomas Petazzoni June 19, 2017, 8:15 p.m. UTC | #1
Hello,

On Mon, 19 Jun 2017 15:33:25 +0100, Vicente Olivert Riera wrote:
> 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.
> 
> Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
> ---
>  package/ntp/ntp.mk | 6 ++++++
>  1 file changed, 6 insertions(+)

Applied to master, thanks.

Thomas
Peter Korsgaard June 26, 2017, 7:50 a.m. UTC | #2
>>>>> "Vicente" == Vicente Olivert Riera <Vincent.Riera@imgtec.com> 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.

 > Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>

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

Patch

diff --git a/package/ntp/ntp.mk b/package/ntp/ntp.mk
index 26f58628a..c70d6e635 100644
--- a/package/ntp/ntp.mk
+++ b/package/ntp/ntp.mk
@@ -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