How to recompile kernel
I am trying some changes to the kernel code. To test them out I have to recompile the whole kernel with the $make command. Since I have not touched the major part of the kernel including the device drivers is there any way to only compile what I have changed and avoid rebuild all the modules every time.
|
|
To be more clear I dont want to recompile all the kernel modules every time. I could not find the information that I was looking for on the above website.
$make should just compile what has changed and not recompile all the kernel modules - which takes a lot of time. |
compiler cache
I am not sure whether you are looking for a compiler cache, you can think about using "ccache" available here "http://ccache.samba.org/"
Regards, Suresh Maniyath |
problem fixed. make handles it automatically. just dont do make clean or make distclean. I dont know whether there are any side effects of not running make clean :)
|
if you have a kernel that has been configured and built with modules. This happens with the make command . later you can run make xconfig or make menuconfig select the new modules you want built. then do make modules. always back up your /lib/modules/uname -r
make clean does that cleans your built modules then you will have to recompile them again if needed. |
All times are GMT -5. The time now is 06:24 AM. |