Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Adding non-portage Kernels to eselect kernel?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Kingoftherings
Guru
Guru


Joined: 04 May 2008
Posts: 328

PostPosted: Tue Oct 06, 2009 10:34 pm    Post subject: Adding non-portage Kernels to eselect kernel? Reply with quote

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
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Tue Oct 06, 2009 11:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
Kingoftherings
Guru
Guru


Joined: 04 May 2008
Posts: 328

PostPosted: Tue Oct 06, 2009 11:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Wed Oct 07, 2009 12:04 am    Post subject: Reply with quote

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
View user's profile Send private message
pappy_mcfae
Watchman
Watchman


Joined: 27 Dec 2007
Posts: 5999
Location: Pomona, California.

PostPosted: Sun Oct 11, 2009 8:01 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum