#383 Patch to allow compiling with KBUILD_OUTPUT and kernel-2.6.x


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

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.


  • David Hinds

    David Hinds - 2006-01-17

    Logged In: YES

    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

    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.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks