mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] dhcp: Add option to disable DHCPv6
@ 2012-06-08 21:26 Bernhard Walle
  0 siblings, 0 replies; only message in thread
From: Bernhard Walle @ 2012-06-08 21:26 UTC (permalink / raw)
  To: ptxdist

I needed that option to compile the DHCP client on an IPv4-only
uclibc-based target system.

Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
---
 rules/dhcp.in   |    7 +++++++
 rules/dhcp.make |    2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/rules/dhcp.in b/rules/dhcp.in
index f2b920c..57dc1db 100644
--- a/rules/dhcp.in
+++ b/rules/dhcp.in
@@ -16,6 +16,13 @@ menuconfig DHCP
 
 if DHCP
 
+config DHCP_DHCPV6
+	bool
+	prompt "Enable DHCPv6"
+	default y
+	help
+	  Enables/disables the DHCPv6 protocol.
+
 config DHCP_SERVER
 	bool
 	prompt "DHCP Server dhcpd"
diff --git a/rules/dhcp.make b/rules/dhcp.make
index fc42a87..ab1b42e 100644
--- a/rules/dhcp.make
+++ b/rules/dhcp.make
@@ -38,7 +38,7 @@ DHCP_DIR	:= $(BUILDDIR)/$(DHCP)
 #
 DHCP_AUTOCONF := \
 	$(CROSS_AUTOCONF_ROOT) \
-	--enable-dhcpv6
+	--$(call ptx/endis, PTXCONF_DHCP_DHCPV6)-dhcpv6
 
 # overwrite CFLAGS to remove -Werror
 DHCP_MAKE_OPT := \
-- 
1.7.9.5


-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-06-08 21:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-08 21:26 [ptxdist] [PATCH] dhcp: Add option to disable DHCPv6 Bernhard Walle

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