Fix modversions detection for newer pcmcia-cs.

This commit is contained in:
solomon 2002-09-05 19:01:27 +00:00
parent c79871a035
commit 4071c17f7b

View file

@ -396,13 +396,20 @@ if [ $PRISM2_PCMCIA = "y" ] ; then
if [ $? = 1 ] ; then
WLAN_KERN_PCMCIA=n
# perform some trickery if we have non-kernel pcmcia.
# we need to use pcmcia-cs's modversion stuff.
# Now we need to generate the module options flags.
# It's only relevant if modversions is turned on.
grep CONFIG_MODVERSIONS=y < $PCMCIA_SRC/config.mk > /dev/null
if [ $? = 0 ] ; then
PCMCIA_MODFLAGS="-DMODVERSIONS -include $PCMCIA_SRC/include/linux/modversions.h"
PCMCIA_MODFLAGS="-DMODULE -DMODVERSIONS -include $PCMCIA_SRC/include/linux/modversions.h"
fi
dump_str "PCMCIA_MODFLAGS=-DMODULE $PCMCIA_MODFLAGS"
# new versions of pcmcia-cs don't generate their own modversions.
# if they don't have it, use the kernel module flags instead.
if [ ! -f $PCMCIA_SRC/include/linux/modversions.h ] ; then
PCMCIA_MODFLAGS="$KERNEL_MODFLAGS"
fi
dump_str "PCMCIA_MODFLAGS=$PCMCIA_MODFLAGS"
fi
write_bool WLAN_KERN_PCMCIA