Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/usr/src/linux question
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
rommel
Veteran
Veteran


Joined: 19 Apr 2002
Posts: 1140
Location: Williamsburg Virginia

PostPosted: Wed May 08, 2002 6:24 am    Post subject: /usr/src/linux question Reply with quote

i have now in/usr/src the linux directory and then 2 gentoo source directories and a linux sources directory...how do you get rid of them adn leave the most recent...i have a linux-2.4.19-rc1 , linux-2.4.19-gentoo-rc1 and from the most recent update linux-2.4.19-gentoo-rc3...my kernel is compiled using the gentoo-rc1
Back to top
View user's profile Send private message
Guest






PostPosted: Wed May 08, 2002 7:31 am    Post subject: Reply with quote

I'm not sure I understand... are you looking for something other than "rm -rf"?

The linux directory should be a symbolic link to one of the other directories (probably linux-2.4.19...rc1). You don't really need to delete it, just have it point somewhere valid.

All I can suggest is don't clean up the "old" directory before you compile and verify a new kernel ;)
Back to top
rommel
Veteran
Veteran


Joined: 19 Apr 2002
Posts: 1140
Location: Williamsburg Virginia

PostPosted: Wed May 08, 2002 7:44 am    Post subject: Reply with quote

yeah its pointing to gentoo-rc1...thats what my current kernel is compiled against...but how do i point it to the newer gentoo directory...as of 3 mins ago rc-4 now...lol
edit:
wait is it as simple as editing the Makefile in the linux directory and setting the extraversion to ue gentoo-rc4 instead of rc-1?
Back to top
View user's profile Send private message
AutoBot
l33t
l33t


Joined: 22 Apr 2002
Posts: 968
Location: Usually Out

PostPosted: Wed May 08, 2002 7:59 am    Post subject: Reply with quote

Safest way would be:
Code:

emerge unmerge <current-kernel>
cd /usr/src
rm -rf sources.you.dontwant-2.x.x
rm linux
emerge rsync
emerge gentoo-sources
cd linux
make dep && make clean bzImage modules modules_install

Reason I say cd is because rm -rf could go horribly wrong if you accidently did it in the wrong way, basically your /usr/src directory should be empty other than perhaps a pc directory before you emerge gentoo-sources.
_________________
This message self destructed a long time ago.
Back to top
View user's profile Send private message
zerogeny
Tux's lil' helper
Tux's lil' helper


Joined: 17 Apr 2002
Posts: 85

PostPosted: Wed May 08, 2002 1:31 pm    Post subject: Reply with quote

before you got deleting your sources, i would emerge the newer source and test it before :)
_________________
Searched the web for zerogeny.
Results 1 - 1 of 1. Search took 0.05 seconds
Back to top
View user's profile Send private message
rommel
Veteran
Veteran


Joined: 19 Apr 2002
Posts: 1140
Location: Williamsburg Virginia

PostPosted: Wed May 08, 2002 8:06 pm    Post subject: Reply with quote

well let me ask this....instead of trashing everything right out can i just point the Makefile in the linux directory to go to the newest r-4 sources directory and compile a kernel and see how it works....or will the presence of all the older sources and i guess previous symbolic links not let the compile work properly?
oh crap i'll just try it....lol....i took longer to type this then run config

edit:

well i ran config with just the 'extraversion= -gentoo-r4' line changed in the gentoo-r1 sources directory and it comiled ok and i am runinng it now ...if i type #uname -r it tells me 2.4.19-gentoo-r4

so did this work or by changing the extraversion= line did i just change what it tells you it is...lol
Back to top
View user's profile Send private message
friedmud
Apprentice
Apprentice


Joined: 18 Apr 2002
Posts: 258
Location: Austin, TX USA

PostPosted: Wed May 08, 2002 11:05 pm    Post subject: Reply with quote

Wouldn't an:

Code:
emerge clean


clean out the old ones and just leave the newest??

Derek
Back to top
View user's profile Send private message
MacMasta
Guru
Guru


Joined: 18 Apr 2002
Posts: 545
Location: Anchorage, AK

PostPosted: Thu May 09, 2002 1:03 am    Post subject: How about just relinking? Reply with quote

Is there any reason that

Code:
rm linux
ln -s (target) linux


woudn't work?

~Mac~
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