conf/125551: [PATCH] building WLAN userland should be optional

Igor Mozolevsky igor at hybrid-lab.co.uk
Sat Jul 12 22:00:07 UTC 2008


>Number:         125551
>Category:       conf
>Synopsis:       [PATCH] building WLAN userland should be optional
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 12 22:00:07 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Igor Mozolevsky
>Release:        RELENG_7
>Organization:
>Environment:
>Description:
FreeBSD builds unnecessary WLAN userland utilities by default. There should be an option to switch that behaviour off.
>How-To-Repeat:
cd /usr/src && make world
>Fix:
Add WITHOUT_WLAN to src.conf to prevent WPA stuff (hostapd and wpa_supplicant) and wlandebug from being built. Patch attached.

There are probably other things that shouldn't be built if WLAN support is not required, if someone points them out to me I'll add them to the patch.

Patch attached with submission follows:

--- share/mk/bsd.own.mk.old	2008-07-12 19:37:55.000000000 +0100
+++ share/mk/bsd.own.mk	2008-07-12 19:38:32.000000000 +0100
@@ -358,6 +358,7 @@
     TCSH \
     TOOLCHAIN \
     USB \
+    WLAN \
     WPA_SUPPLICANT_EAPOL \
     ZONEINFO \
     ZFS
--- usr.sbin/Makefile.old	2008-07-12 19:39:17.000000000 +0100
+++ usr.sbin/Makefile	2008-07-12 19:42:36.000000000 +0100
@@ -184,9 +184,9 @@
 	vipw \
 	watch \
 	watchdogd \
-	wlandebug \
+	${_wlandebug} \
 	${_wlconfig} \
-	wpa \
+	${_wpa} \
 	${_ypbind} \
 	${_yp_mkdb} \
 	${_yppoll} \
@@ -296,6 +296,11 @@
 _usbdevs=	usbdevs
 .endif
 
+.if ${MK_WLAN} != "no"
+_wldebug= wlandebug
+_wpa= wpa
+.endif
+
 .if ${MACHINE_ARCH} == "arm"
 _kgmon=		kgmon
 .endif


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list