On 1/24/06, Alex Bennee <[EMAIL PROTECTED]> wrote:
<snip>
>  * If you are using KBUILD_OUTPUT, please set the environment var so
> that
>  * it points to the necessary object directory so that it might
> find .config.
>
> However with all kernels you should be able to detrmine the root via
> uname -r:
>
> malory / # ls -l "/lib/modules/`uname -r`"
> total 212
> lrwxrwxrwx  1 root root    31 Jan 15 17:16 build
> -> /home/alex/src/kernel/linux-2.6
> lrwxrwxrwx  1 root root    31 Jan 15 17:16 source
> -> /home/alex/src/kernel/linux-2.6

The problem here is that this only points to the running kernel.  You
really need a way to specify what kernel to build against.

> There really is no need to force people to build as root under /usr/src
> so is it possible to educate portage to use the uname method to
> determine the root of the kernel tree for building kernel modules?

Just a guess, haven't tried this myself, but does this work?

KBUILD_OUTPUT=/home/alex/src/kernel/linux-2.6 emerge sys-fs/fuse

-Richard

-- 
gentoo-user@gentoo.org mailing list

Reply via email to