View previous topic :: View next topic |
Author |
Message |
caefer Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/5086712b3e2525066b861.jpg)
Joined: 14 Jan 2003 Posts: 170 Location: Hamburg, Germany
|
Posted: Tue Feb 04, 2003 10:38 am Post subject: why recompile the whole kernel? |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
staked n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 25 Jan 2003 Posts: 15
|
Posted: Tue Feb 04, 2003 1:33 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Operations n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 05 Oct 2002 Posts: 5
|
Posted: Tue Feb 04, 2003 1:36 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Matje l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 29 Oct 2002 Posts: 619 Location: Hasselt, Belgium
|
Posted: Tue Feb 04, 2003 2:18 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
caefer Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/5086712b3e2525066b861.jpg)
Joined: 14 Jan 2003 Posts: 170 Location: Hamburg, Germany
|
Posted: Tue Feb 04, 2003 4:02 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Operations n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 05 Oct 2002 Posts: 5
|
Posted: Tue Feb 04, 2003 4:22 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
caefer Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/5086712b3e2525066b861.jpg)
Joined: 14 Jan 2003 Posts: 170 Location: Hamburg, Germany
|
Posted: Tue Feb 04, 2003 4:26 pm Post subject: |
|
|
ok, I'll try that.
/christian |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|