Added the hack to set CONFIG_NETLINK on the command line if the autoconf.h

says it's available.
This commit is contained in:
mark 2001-12-12 18:58:28 +00:00
parent 31856acf4b
commit 79cf113c3a
3 changed files with 9 additions and 3 deletions

View File

@ -42,6 +42,8 @@
*
* --------------------------------------------------------------------
0.1.12
- I added a check to Configure so we add the CONFIG_NETLINK symbol
on the compile command line if necessary.
- proskin's patches for netlink disable when not configured in kernel,
mkprintstr fix, and turn off skeleton install. The netlink patch
pointed out something that might be the root cause of some problems

View File

@ -372,14 +372,13 @@ if [ $PRISM2_PCMCIA = "y" ] ; then
$ECHO ""
# Test for netlink availability in the kernel
if grep "#define.*CONFIG_NETLINK.*1" ; then
if grep -sq "#define.*CONFIG_NETLINK.*1" ${LINUX_SRC}/include/linux/autoconf.h; then
CONFIG_NETLINK=y
write_bool CONFIG_NETLINK
else
CONFIG_NETLINK=n
write_bool CONFIG_NETLINK
fi
fi
#=======================================================================
# Alternate target install root dir - the value of this variable

View File

@ -77,6 +77,10 @@ ifeq ($(WLAN_DEBUG), y)
WLAN_INCLUDE_DEBUG="-DWLAN_INCLUDE_DEBUG"
endif
ifeq ($(CONFIG_NETLINK), y)
WLAN_CS_CONFIG_NETLINK="-DCONFIG_NETLINK=1"
endif
# Source and obj and target definitions
CS_OBJ_DIR=obj_cs
PLX_OBJ_DIR=obj_plx
@ -160,7 +164,8 @@ ifeq ($(WLAN_KERN_PCMCIA), y)
CS_SYSINC=-I$(PCMCIA_SRC)/include/static -I$(LINUX_SRC)/include \
-I$(PCMCIA_SRC)/include
else
CS_SYSINC=-I$(PCMCIA_SRC)/include -I$(LINUX_SRC)/include
CS_SYSINC=$(WLAN_CS_CONFIG_NETLINK) -I$(PCMCIA_SRC)/include \
-I$(LINUX_SRC)/include
endif # WLAN_KERN_PCMCIA
# Use just SYSINC for all non-pcmcia