auto-magic kernel pcmcia detection.
This commit is contained in:
parent
c978cc1d44
commit
7ee6c9b569
17
Configure
17
Configure
|
@ -379,7 +379,7 @@ if [ $PRISM2_PCMCIA = "y" ] ; then
|
|||
if [ ! -f $PCMCIA_SRC/Makefile ] ; then
|
||||
$ECHO "pcmcia-cs source tree $PCMCIA_SRC is incomplete or missing!"
|
||||
$ECHO "The wlan driver for pcmcia cannot be built without "
|
||||
#ECHO "the pcmcia-cs source tree present and configured."
|
||||
$ECHO "the pcmcia-cs source tree present and configured."
|
||||
fail
|
||||
fi
|
||||
if [ ! -f $PCMCIA_SRC/include/pcmcia/config.h ] ; then
|
||||
|
@ -391,19 +391,22 @@ if [ $PRISM2_PCMCIA = "y" ] ; then
|
|||
$ECHO ""
|
||||
|
||||
# Should we build for Kernel based PCMCIA?
|
||||
WLAN_KERN_PCMCIA=y
|
||||
grep 'define CONFIG_PCMCIA' < $LINUX_SRC/include/linux/autoconf.h > /dev/null
|
||||
if [ $? = 1 ] ; then
|
||||
WLAN_KERN_PCMCIA=n
|
||||
|
||||
ask_bool "Build for Kernel PCMCIA?" WLAN_KERN_PCMCIA
|
||||
$ECHO ""
|
||||
|
||||
# find out if modversions is enabled. If so, set things up to
|
||||
# use the pcmcia modversions headers.
|
||||
if [ ! $WLAN_KERN_PCMCIA = "y" ] ; then
|
||||
# perform some trickery if we have non-kernel pcmcia.
|
||||
# we need to use pcmcia-cs's modversion stuff.
|
||||
grep CONFIG_MODVERSIONS=y < $PCMCIA_SRC/config.mk > /dev/null
|
||||
if [ $? = 0 ] ; then
|
||||
PCMCIA_MODFLAGS="-DMODVERSIONS -include $PCMCIA_SRC/include/linux/modversions.h"
|
||||
fi
|
||||
dump_str "PCMCIA_MODFLAGS=-DMODULE $PCMCIA_MODFLAGS"
|
||||
|
||||
fi
|
||||
write_bool WLAN_KERN_PCMCIA
|
||||
|
||||
fi
|
||||
#=======================================================================
|
||||
# Alternate target install root dir - the value of this variable
|
||||
|
|
Loading…
Reference in a new issue