Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] n00b question - changing default kernel directory
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
kleinishere
n00b
n00b


Joined: 23 Nov 2003
Posts: 37

PostPosted: Sun Sep 19, 2004 11:40 pm    Post subject: [SOLVED] n00b question - changing default kernel directory Reply with quote

Whenever I emerge things or deal with kernels in installing and patching things it automatically goes to /usr/src/linux. I have manually downloaded, extracted, and compiled the 2.6.8.1 kernel in /usr/src/linux-2.6.8.1 . I would like it to automatically go there instead of going to /usr/src/linux.

One example of what it does is shown when I emerge madwifi-driver:

Code:
bash-2.05b# ACCEPT_KEYWORDS="~x86" emerge madwifi-driver-0.1_pre20040906.ebuild
Calculating dependencies ...done!
>>> emerge (1 of 1) net-wireless/madwifi-driver-0.1_pre20040906 to /
>>> md5 src_uri ;-) madwifi-driver-0.1_pre20040906.tar.bz2
>>> md5 src_uri ;-) madwifi-driver-0.1_pre20040906-gentoo.patch.bz2
>>> Unpacking source...
>>> Unpacking madwifi-driver-0.1_pre20040906.tar.bz2 to /var/tmp/portage/madwifi-driver-0.1_pre20040906/work
>>> Unpacking madwifi-driver-0.1_pre20040906-gentoo.patch.bz2 to /var/tmp/portage/madwifi-driver-0.1_pre20040906/work
 * Applying madwifi-driver-0.1_pre20040906-gentoo.patch.bz2...                                                                                                                                                                       [ ok ]
 * /usr/src/linux is a symbolic link
 * Determining the real directory of the Linux kernel source code
 * Building for Linux 2.6.7-gentoo-r11 found in /usr/src/linux
>>> Source unpacked.


So if anyone knows how to make it go to /usr/src/linux-2.6.8.1 rather than /usr/src/linux I would very much appreciate it!

Thanks in advance,

Michael
_________________
Pain is weakness leaving the body.


Last edited by kleinishere on Sun Sep 19, 2004 11:51 pm; edited 1 time in total
Back to top
View user's profile Send private message
Tsonn
Guru
Guru


Joined: 03 Jun 2004
Posts: 550

PostPosted: Sun Sep 19, 2004 11:45 pm    Post subject: Reply with quote

/usr/src/linux is a symbolic link to the correct directory.

To update it, just do:

Code:

cd /usr/src
rm linux
ln -s linux-2.6.8.1 linux

_________________
If your question was answered, please edit the first post and add [SOLVED] to the title. Thanks!
Back to top
View user's profile Send private message
kleinishere
n00b
n00b


Joined: 23 Nov 2003
Posts: 37

PostPosted: Sun Sep 19, 2004 11:50 pm    Post subject: Reply with quote

That worked wonderfully, now onto my wireless :?

thanks a lot 26199
_________________
Pain is weakness leaving the body.
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