Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
using kernel built outside source
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
braver
n00b
n00b


Joined: 29 Dec 2006
Posts: 28

PostPosted: Thu Jan 18, 2007 11:13 pm    Post subject: using kernel built outside source Reply with quote

I like my kernels build outside source, for which 2.6 series has full support. In the source directory, you say

make O=/build/dir xconfig

-- and then do build there.

Yet Gentoo has problems with it. E.g.,

emerge lm_sensors

-- expects to find .config, so I thought of pointing /usr/src/linux to the /build/dir. Yet then it can't find some sources, so I had to repoint ot at /src/dir and copy .config there. Then it can't find autogenerated headers... Where do we point?

Cheers,
Alexy
Back to top
View user's profile Send private message
tobr
Guru
Guru


Joined: 29 May 2006
Posts: 330

PostPosted: Thu Jan 18, 2007 11:59 pm    Post subject: Reply with quote

My guess is that some programs (kernel modules, for example) need the kernel sources, the .config and the binaries. So IMHO you can't do this without symlinking everything that misses from /usr/src/linux.
Back to top
View user's profile Send private message
braver
n00b
n00b


Joined: 29 Dec 2006
Posts: 28

PostPosted: Fri Jan 19, 2007 2:19 am    Post subject: Reply with quote

Kernel modules for 2.6, in fact, conform to the kbuild system and know how to find source directory from the build directory, when they are different. The build directory links back to the source one. For generality, they all support make variables, make C=/src/dir O=/build/dir.

Apparently, gentoo just doesn't know about a separate build directory. That's another reason I build my kernel manually, as I prefer to patch/unpatch a single clean source tree and have several different build directories, which I could quickly activate if need arose.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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