Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.