From: Kristian Hoffmann (khoff_at_pc-intouch.com)
Date: 2002-04-22 23:04:14 UTC
Here is a quick patch that will use a non-kernel pcmcia-cs source tree if
you don't have pcmcia enabled in the kernel.
-Kristian
diff -Naur Prism2-2002-04-21/Makefile Prism2-2002-04-21-mod/Makefile
--- Prism2-2002-04-21/Makefile Sat Apr 20 14:07:23 2002@@ -2,8 +2,10 @@
+++ Prism2-2002-04-21-mod/Makefile Mon Apr 22 14:59:45 2002
+# Leave this blank if you are using kernel PCMCIA.
+PCMCIA_PATH=
+
CC=gcc
-INCLUDES=-I$(KERNEL_PATH)/include
CFLAGS=-O2 -D__KERNEL__ -DMODULE -fomit-frame-pointer -Wall -c
VERFILE := $(KERNEL_PATH)/include/linux/version.h
@@ -25,6 +27,12 @@
CFLAGS += -DMODVERSIONS -include $(KERNEL_PATH)/include/linux/modversions.h
endif
+ifdef CONFIG_PCMCIA
+INCLUDES=-I$(KERNEL_PATH)/include
+else
+INCLUDES=-I$(PCMCIA_PATH)/include -I$(KERNEL_PATH)/include
+endif
+
ifdef CONFIG_SMP
CFLAGS += -D__SMP__ -DSMP
endif