On Tue, 08 Nov 2005 19:40:59 +0200
Rumen Yotov wrote:

> Hi,
> There seems to exist at least two current kernels - one is the kernel to
> which /usr/src/linux points, this one is used by most (all ?)
> kernel-module programs (i have 3 of them: nvidia, arpstar, loop-aes; had
> also alsa-driver). When you compile/recompile any one of them they use
> the kernel sources pointed by /usr/src/linux. Patch kernel sources too
> (e.g. "l7-filter").
> The second kernel is your running kernel (available by "uname -r") this
> one is the one actually running at any givenn time. Don't have any
> examples of something using this one. Anybody here?
> HTH.Rumen

What i think you mean is that there are two ways of referencing what may be the 
correct kernel to compile against :-). However In addition to:

/usr/src/linux ; (method 1) and
/usr/src/linux-`uname -r`  (method 2)

There are many packages out there that find the linux sources by looking for:

/lib/modules/`uname -r`/build  - (method 3) which is a symlink to the
sources those modules were built from.

Not all ebuilds use method 1 to find the kernel version.


cd /usr/portage
grep "uname -r" * -r

reveals any number of ebuilds that refer to uname -r as a way of
determining the kernel version. Also many packages use either method 2
or method 3 in their internal config script or makefile.


-- 
Nick Rout <[EMAIL PROTECTED]>

-- 
gentoo-user@gentoo.org mailing list

Reply via email to