Updates for kernel based pcmcia.

This commit is contained in:
mark 2000-06-15 17:17:01 +00:00
parent 23da1fc5cb
commit f42a10aefd
3 changed files with 30 additions and 4 deletions

View File

@ -317,6 +317,11 @@ dump_str 'CROSS_MAKE=make'
ask_bool "Build for debugging (see doc/config.debug)" WLAN_DEBUG
#=======================================================================
# Should we build for Kernel based PCMCIA
ask_bool "Build for Kernel PCMCIA?" WLAN_KERN_PCMCIA
#=======================================================================
mv $CONFIG config.out

View File

@ -107,10 +107,20 @@ CFLAGS = -O2 -Wall -Wstrict-prototypes -fomit-frame-pointer -pipe
endif
# Preprocessor Options
ifeq ($(WLAN_KERN_PCMCIA), y)
CPPFLAGS=-D__LINUX_WLAN__ -D__KERNEL__ -DMODULE=1 \
-I../include -I../../include \
-I$(LINUX_SRC)/include -I$(PCMCIA_SRC)/include \
-I$(PCMCIA_SRC)/include/static \
-I$(LINUX_SRC)/include \
-I$(PCMCIA_SRC)/include \
$(WLAN_INCLUDE_DEBUG)
else
CPPFLAGS=-D__LINUX_WLAN__ -D__KERNEL__ -DMODULE=1 \
-I../include -I../../include \
-I$(PCMCIA_SRC)/include \
-I$(LINUX_SRC)/include \
$(WLAN_INCLUDE_DEBUG)
endif
# Dependency Source List
DEP_SRC=$(SRC)
@ -131,6 +141,7 @@ $(AP_CS_MODULE) : $(AP_CS_OBJ)
chmod -x $@
install : $(MODULES)
mkdir -p $(TARGET_MODDIR)/pcmcia
cp $(MODULES) $(TARGET_MODDIR)/pcmcia
ifeq ($(WLAN_INSTALL_TYPE), ap)
ln -sf $(MODDIR)/pcmcia/$(AP_CS_MODULE) $(TARGET_MODDIR)/pcmcia/prism2_cs.o

View File

@ -86,10 +86,20 @@ CFLAGS = -O2 -Wall -Wstrict-prototypes -fomit-frame-pointer -pipe
endif
# Preprocessor Options
ifeq ($(WLAN_KERN_PCMCIA), y)
CPPFLAGS=-D__LINUX_WLAN__ -D__KERNEL__ -DMODULE=1 \
-I../include -I$(LINUX_SRC)/include -I$(PCMCIA_SRC)/include \
-I../include \
-I$(PCMCIA_SRC)/include/static \
-I$(LINUX_SRC)/include \
-I$(PCMCIA_SRC)/include \
$(WLAN_INCLUDE_DEBUG) $(WLAN_INCLUDE_SNIF)
else
CPPFLAGS=-D__LINUX_WLAN__ -D__KERNEL__ -DMODULE=1 \
-I../include \
-I$(PCMCIA_SRC)/include \
-I$(LINUX_SRC)/include \
$(WLAN_INCLUDE_DEBUG) $(WLAN_INCLUDE_SNIF)
endif
# Dependency Source List
DEP_SRC=$(SKEL_SRC)
@ -107,7 +117,7 @@ $(SKEL_MODULE) : $(SKEL_OBJ)
chmod -x $@
install : $(MODULES)
mkdir -p $(TARGET_MODDIR)/net
mkdir -p $(TARGET_MODDIR)/pcmcia
cp $(SKEL_MODULE) $(TARGET_MODDIR)/pcmcia
clean: