mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH v2] iputils: fix select statements
@ 2014-02-10  7:49 Alexander Aring
  2014-02-12  8:46 ` Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Aring @ 2014-02-10  7:49 UTC (permalink / raw)
  To: ptxdist; +Cc: Alexander Aring

Iputils builds always all tools with the default env's in Makefile.
We can't disable or enable this during compile time. So we need always
these dependencies.

Also fix add missing dependencies for busybox on menuentries.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
---
Changes since v2:
 - Add missing busybox dependencies. I thought there was a kind of
   tra`nsitiv dependency but it wasn't.

 rules/iputils.in | 23 ++++++++++++++++-------
 1 file changed, 16 insertions(+), 7 deletions(-)

diff --git a/rules/iputils.in b/rules/iputils.in
index ff8e2b3..07c6ccc 100644
--- a/rules/iputils.in
+++ b/rules/iputils.in
@@ -3,10 +3,10 @@
 menuconfig IPUTILS
 	tristate
 	prompt "iputils                       "
-	select LIBC_RESOLV	if IPUTILS_PING6
-	select LIBCAP		if IPUTILS_ARPING || IPUTILS_PING || IPUTILS_PING6 || IPUTILS_TRACEROUTE6
-	select GNUTLS		if IPUTILS_PING6
-	select GNUTLS_OPENSSL	if IPUTILS_PING6
+	select LIBC_RESOLV
+	select LIBCAP
+	select GNUTLS
+	select GNUTLS_OPENSSL
 	help
 	  The iputils package is set of small useful utilities for Linux
 	  networking.
@@ -33,7 +33,7 @@ config IPUTILS_CLOCKDIFF
 
 config IPUTILS_PING
 	bool
-	depends on !INETUTILS_PING || ALLYES
+	depends on (!BUSYBOX_PING && !INETUTILS_PING) || ALLYES
 	prompt "ping"
 	help
 	  The ping command uses the ICMP protocol's mandatory ECHO_REQUEST datagram
@@ -42,12 +42,15 @@ config IPUTILS_PING
 	  timeval and then an arbitrary number of pad bytes used to fill out
 	  the packet.
 
+comment "inetutils' ping is selected!"
+        depends on INETUTILS_PING
+
 comment "BusyBox' ping is selected!"
         depends on BUSYBOX_PING
 
 config IPUTILS_PING6
 	bool
-	depends on !INETUTILS_PING6 || ALLYES
+	depends on (!BUSYBOX_PING6 && !INETUTILS_PING6) || ALLYES
 	prompt "ping6"
 	depends on GLOBAL_IPV6
 	help
@@ -55,6 +58,9 @@ config IPUTILS_PING6
 	  Information Queries (RFC4620). Intermediate hops may not be allowed,
 	  because IPv6 source routing was deprecated (RFC5095).
 
+comment "inetutils' ping6 is selected!"
+        depends on INETUTILS_PING6
+
 comment "BusyBox' ping6 is selected!"
         depends on BUSYBOX_PING6
 
@@ -78,10 +84,13 @@ config IPUTILS_RDISC
 
 config IPUTILS_TFTPD
 	bool
-	depends on !INETUTILS_TFTPD || ALLYES
+	depends on (!BUSYBOX_TFTPD && !INETUTILS_TFTPD) || ALLYES
 	prompt "tftpd"
 	help
 
+comment "inetutils' tftpd is selected!"
+        depends on INETUTILS_PING
+
 comment "BusyBox' tftpd is selected!"
         depends on BUSYBOX_TFTPD
 
-- 
1.8.5.4


-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-02-12  8:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-10  7:49 [ptxdist] [PATCH v2] iputils: fix select statements Alexander Aring
2014-02-12  8:46 ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox