Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
why recompile the whole kernel?
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
caefer
Apprentice
Apprentice


Joined: 14 Jan 2003
Posts: 170
Location: Hamburg, Germany

PostPosted: Tue Feb 04, 2003 10:38 am    Post subject: why recompile the whole kernel? Reply with quote

hi there,
I am not sure with some options in the kernel configuration, so I want to build several versions of the kernel to test them then. but since I don't change a lot I wonder if it isn't possible to only recompile what I have changed and link what has been untouched?

maybe leave make clean out?

regards
/christian
Back to top
View user's profile Send private message
staked
n00b
n00b


Joined: 25 Jan 2003
Posts: 15

PostPosted: Tue Feb 04, 2003 1:33 pm    Post subject: Reply with quote

Just recompiling the changes on their own will not give you a new bzImage, so the options won't be in your kernel.
Back to top
View user's profile Send private message
Operations
n00b
n00b


Joined: 05 Oct 2002
Posts: 5

PostPosted: Tue Feb 04, 2003 1:36 pm    Post subject: Reply with quote

If you leave out make clean, it only builds the files that need building (ie. files which haven't been built before, because they weren't enabled in the config)

So to build a new kernel just type 'make dep && make bzImage modules modules_install'
Back to top
View user's profile Send private message
Matje
l33t
l33t


Joined: 29 Oct 2002
Posts: 619
Location: Hasselt, Belgium

PostPosted: Tue Feb 04, 2003 2:18 pm    Post subject: Reply with quote

If you don't do make clean, it is possible that your new kernel won't work
_________________
Life is like a box of chocolates... Before you know it, it's empty...
Back to top
View user's profile Send private message
caefer
Apprentice
Apprentice


Joined: 14 Jan 2003
Posts: 170
Location: Hamburg, Germany

PostPosted: Tue Feb 04, 2003 4:02 pm    Post subject: Reply with quote

hmm.. but isn't the idea behind c/c++ compiling and linking, that you only need to compile the sources that have changed and link all new and old object files together then?

still wondering
/christian
Back to top
View user's profile Send private message
Operations
n00b
n00b


Joined: 05 Oct 2002
Posts: 5

PostPosted: Tue Feb 04, 2003 4:22 pm    Post subject: Reply with quote

There is indeed a slight possibility of compile error if you don't use make clean first. However, in my experience most of the time it works just fine without that. So just leave it out.
In case you do get an error, you can always do a make clean and recompile everything from scratch
Back to top
View user's profile Send private message
caefer
Apprentice
Apprentice


Joined: 14 Jan 2003
Posts: 170
Location: Hamburg, Germany

PostPosted: Tue Feb 04, 2003 4:26 pm    Post subject: Reply with quote

ok, I'll try that. :wink:
/christian
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