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

open
nobody
None
5
2006-01-11
2006-01-11
No

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.

Discussion

  • David Hinds

    David Hinds - 2006-01-17

    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?

     
  • Kalin KOZHUHAROV

    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.

     

Log in to post a comment.

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

Sign up for the SourceForge newsletter:





No, thanks