]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/wlan-ng/files/pcmciasrc.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / wlan-ng / files / pcmciasrc.patch
1
2 #
3 # Patch managed by http://www.holgerschurig.de/patcher.html
4 #
5
6 --- linux-wlan-ng-0.2.2/Configure~pcmciasrc
7 +++ linux-wlan-ng-0.2.2/Configure
8 @@ -358,37 +358,6 @@
9         # kernel PCMCIA. 
10  
11         if [ $WLAN_KERN_PCMCIA != "y" ] ; then
12 -           if [ ! "$PCMCIA_SRC" ] ; then
13 -               if [ -f /sbin/cardctl ] ; then
14 -                       PCMCIA_SRC=`/sbin/cardctl -V 2>&1 | sed -e 's/cardctl version //'`
15 -                       PCMCIA_SRC=/usr/src/pcmcia-cs-$PCMCIA_SRC
16 -               fi      
17 -           fi
18 -           ask_str "pcmcia-cs source dir" PCMCIA_SRC
19 -
20 -           if [ ! -f $PCMCIA_SRC/Makefile ] ; then
21 -               $ECHO "pcmcia-cs source tree $PCMCIA_SRC is incomplete or missing!"
22 -               $ECHO "The wlan driver for pcmcia cannot be built without "
23 -               $ECHO "the pcmcia-cs source tree present and configured."
24 -               fail
25 -           fi
26 -           if [ ! -f $PCMCIA_SRC/include/pcmcia/config.h ] ; then
27 -               $ECHO "The pcmcia-cs source tree does not appear to be configured."
28 -               $ECHO "The wlan driver for pcmcia cannot be built without "\
29 -               $ECHO "the pcmcia-cs source tree present and configured."
30 -               fail
31 -           fi
32 -           $ECHO ""
33 -
34 -            # Now we need to generate the module options flags.
35 -           # It's only relevant if modversions is turned on.
36 -           grep CONFIG_MODVERSIONS=y < $PCMCIA_SRC/config.mk > /dev/null
37 -           if [ $? = 0 ] ; then
38 -               PCMCIA_MODFLAGS="-DMODULE -DMODVERSIONS -include $PCMCIA_SRC/include/linux/modversions.h"
39 -           else
40 -               PCMCIA_MODFLAGS="-DMODULE"
41 -           fi
42 -           
43             # new versions of pcmcia-cs don't generate their own modversion.h
44             # if they don't have it, use the kernel module flags instead.
45             if [ ! -f $PCMCIA_SRC/include/linux/modversions.h ] ; then