Re: pcmcia/2.1.89/90pre1/2

John Kennedy (jk@csuchico.edu)
Thu, 12 Mar 1998 13:44:47 -0800


03/12/98 @ 01:44:33 PM (Thursday)

[me]
> I mailed David Hinds about it before pcmcia-cs.03-Mar-98 and .05-Mar-98
> came out but it didn't work through linux-2.1.89. I tried it with the
> latest (currently pre-2.1.90-2) and ran into a bunch of problems with
> CONFIG_MAX_MEMSIZE being undeclared, so I'm going to have to figure
> that one out. ...

The new pre-2.1.90-2 didn't fix it, but pcmcia-cs.12-Mar-98 did. It
needs a few patches to compile under -2 though. This is probably a kludge.

--- john
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
--- include/pcmcia/k_compat.h.orig Wed Mar 11 15:07:40 1998
+++ include/pcmcia/k_compat.h Thu Mar 12 13:13:45 1998
@@ -217,4 +217,8 @@
#define POLL_WAIT(f, q, w) poll_wait(f, q, w)
#endif

+#if (LINUX_VERSION_CODE >= VERSION(2,1,90))
+#include <linux/autoconf.h>
+#endif
+
#endif /* _LINUX_K_COMPAT_H */
--- modules/Makefile.orig Sun Mar 8 12:31:56 1998
+++ modules/Makefile Thu Mar 12 13:12:49 1998
@@ -16,8 +16,10 @@
-I$(LINUX)/include -I$(LINUX)
COFLAGS = -kv

+AUTOCONF = -imacros /usr/include/linux/autoconf.h
+
# For files in kernel source tree, so that we can override config flags
-XFLAGS = -O2 -D__KERNEL__ -I../include -I$(LINUX)/include
+XFLAGS = -O2 -D__KERNEL__ -I../include -I$(LINUX)/include $(AUTOCONF)
ifdef CONFIG_MODVERSIONS
XFLAGS := $(XFLAGS) $(MFLAG)
endif

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu