wpa-supplicant makefile patch

Jim Cromie jim.cromie at gmail.com
Fri Nov 19 19:38:57 EST 2004


attached patch is trivial, but mildly helpful, ie:

[jimc at harpo wpa_supplicant-0.2.5]$ more patch-make1
--- Makefile.orig       2004-11-19 16:59:55.569710456 -0700
+++ Makefile    2004-11-19 17:22:01.798093096 -0700
@@ -34,6 +34,11 @@
                echo '.config exists - did not replace it'; \
                exit 1; \
        fi
+       @if [ -x /sbin/modprobe ]; then \
+               if /sbin/modprobe ndiswrapper 2>/dev/null ; then \
+                       echo CONFIG_DRIVER_NDISWRAPPER=y >> .config; \
+               fi \
+       fi
        echo CONFIG_DRIVER_HOSTAP=y >> .config
        echo CONFIG_DRIVER_WEXT=y >> .config
        echo CONFIG_WIRELESS_EXTENSION=y >> .config


I thought about adding a foreach loop to test for a number of modules,
but punted cuz I dont know how to upcase 'ndiswrapper'.
In any case, it better to use a proper hash to map 
   modulename => CONFIG_flag
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-make1
Type: application/octet-stream
Size: 469 bytes
Desc: not available
Url : http://lists.shmoo.com/pipermail/hostap/attachments/20041119/4f9d4858/attachment.obj 


More information about the HostAP mailing list