View previous topic :: View next topic |
Author |
Message |
Kingoftherings Guru
Joined: 04 May 2008 Posts: 328
|
Posted: Tue Oct 06, 2009 10:34 pm Post subject: Adding non-portage Kernels to eselect kernel? |
|
|
Hello, I'm using a kernel from a git tree, and is there a way to have eselect kernel see it?
virtualbox-modules is building against my vanilla-sources 2.6.30.5 instead of the git tree.
Thanks. |
|
Back to top |
|
|
Sadako Advocate
Joined: 05 Aug 2004 Posts: 3792 Location: sleeping in the bathtub
|
Posted: Tue Oct 06, 2009 11:46 pm Post subject: |
|
|
All `eselect kernel` does is make sure /usr/src/linux is a symlink to the kernel tree you select, so all you should have to do is manually create that symlink to your git tree.
Also, AFAIK if your kernel tree is located in /usr/src (and probably named appropriately), eselect should list it. _________________ "You have to invite me in" |
|
Back to top |
|
|
Kingoftherings Guru
Joined: 04 May 2008 Posts: 328
|
Posted: Tue Oct 06, 2009 11:57 pm Post subject: |
|
|
Hopeless wrote: | All `eselect kernel` does is make sure /usr/src/linux is a symlink to the kernel tree you select, so all you should have to do is manually create that symlink to your git tree.
Also, AFAIK if your kernel tree is located in /usr/src (and probably named appropriately), eselect should list it. |
Moving it to /usr/src/linux-2.6.31-rc9 made eselect notice it.
I'm guessing that getting the version number correct is important so that it puts the vbox modules in the right place in /lib/modules? |
|
Back to top |
|
|
Sadako Advocate
Joined: 05 Aug 2004 Posts: 3792 Location: sleeping in the bathtub
|
Posted: Wed Oct 07, 2009 12:04 am Post subject: |
|
|
Kingoftherings wrote: | Hopeless wrote: | All `eselect kernel` does is make sure /usr/src/linux is a symlink to the kernel tree you select, so all you should have to do is manually create that symlink to your git tree.
Also, AFAIK if your kernel tree is located in /usr/src (and probably named appropriately), eselect should list it. |
Moving it to /usr/src/linux-2.6.31-rc9 made eselect notice it.
I'm guessing that getting the version number correct is important so that it puts the vbox modules in the right place in /lib/modules? | It shouldn't be, the "name" of the kernel when it comes to the modules directory should be determined from the kernel's Makefile.
I think. _________________ "You have to invite me in" |
|
Back to top |
|
|
pappy_mcfae Watchman
Joined: 27 Dec 2007 Posts: 5999 Location: Pomona, California.
|
Posted: Sun Oct 11, 2009 8:01 am Post subject: |
|
|
eselect only detects kernel versions if they are:
1. in the /usr/src/ directory
2. in the form: linux-<version_number>
For example, eselect kernel list will list /usr/src/linux-2.6.30-zen2, but would not list /usr/local/src/linux-2.6.30-zen2, or /usr/src/kernel-version-2.6.xxx. The first one points to the wrong directory, the second to a non-standard kernel source nomenclature directory.
If you want to compile external modules, they must be compiled against an installed version of the linux kernel. That is accomplished by using the /usr/src/linux symlink.
Blessed be!
Pappy _________________ This space left intentionally blank, except for these ASCII symbols. |
|
Back to top |
|
|
|