I filed this originally as a Gentoo bug, see
https://bugs.gentoo.org/show_bug.cgi?id=118557 but it
was suggested to file upstream instead.
At the moment pcmcia-cs does not compile (Configure
script is broken) on systems that have compiled the
kenrel in other directory than the source (using
KBUILD_OUTPUT). The attached patch fixes that, although
I am not very confident in it.
The patch is also available at my portage-overlay
(Gentoo specific, under
rsync://rsync.tar.bz/gentoo-portage-pkalin/sys-apps/pcmcia-cs/files/pcmcia-cs-3.2.9_pre20050614-KBUILD_OUTPUT.patch
).
The patch is based on brix's overlay (
http://dev.gentoo.org/~brix/files/overlay/ ).
The patch started with trying to get better VERSION
PATCHLEVEL etc, because the
Configure script was using sed to parse the Makefile...
I reworked it ot use make (similar to linux-info.eclass)
This was not enough, so some other things got fixed.
Not sure about /proc/kallsyms, if anybody is more
knowledgeble, plese check it.
One more FIXME: in the patch as there are no such
CONFIG_1GB in the current linux-2.6.15 source.
pcmcia-cs-3.2.9_pre20050614-KBUILD_OUTPUT.patch
Logged In: YES
user_id=7760
Are there any remaining reasons for anyone to build
pcmcia-cs on a 2.6.15 or later kernel? My first inclination
is to change pcmcia-cs to refuse to build on 2.6 kernels
entirely, since the preferred solution is now to use the
pcmcia-tools stuff?
Logged In: YES
user_id=674511
Well, I don't know. After I submitted this patch I went and
switched to pcmcia-tools and I am happy with that. Just in
case anybody would need that (and because I spent some time
on it) I decided to post it here.
Use it at your will.