I started using KBUILD_OUTPUT and managing my kernels (mostly vanilla) since 2.6.0 came out. There are many packages, and some bugs are already filed here, that do not support KBUILD_OUTPUT. Trying to make pcmacia-cs work with it, I patched it so at least it compiles and installs. Will provide the patch shortly, it is available at my overlay (see URL above)
Created attachment 76760 [details, diff] pcmcia-cs-3.2.9_pre20050614-KBUILD_OUTPUT.patch This is based on brix's overlay ( http://dev.gentoo.org/~brix/files/overlay/ ), but the version in the offical tree is also broken. The patch started with trying to get better VERSION PATCHLEVEL etc, becayse 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 abotu /proc/kallsyms if anybody is more knowledgeble, plese check it. One more FIXME: in the patch as there are no such CONFIGs in the current linux-2.6.15 source.
Adding brix to CC, as this "work" was originally based on his overlay ;-)
pcmcia-cs is deprecated in favor of pcmciautils. Please get this patch accepted upstream, then it will automatically appear in Gentoo Portage when (if?) a new version is released. Feel free to reopen this bug once the patch has been accepted upstream, and I will include it in sys-apps/pcmcia-cs.
Filed upstream: [ 1402263 ] Patch to allow compiling with KBUILD_OUTPUT and kernel-2.6.x http://sourceforge.net/tracker/index.php?func=detail&aid=1402263&group_id=2405&atid=102405 Thank you for your quick response.
Great. Please let me know when it gets accepted upstream.