LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Recompiling the linux Kernel after patching (https://www.linuxquestions.org/questions/linux-newbie-8/recompiling-the-linux-kernel-after-patching-790049/)

Rish.Ahm 02-18-2010 05:43 PM

Recompiling the linux Kernel after patching
 
Hello All,

I am doing some development work which very often includes editing some Linux kernel files. After making these changes, i am required to re-compile the kernel for the changes to take effect in the kernel after restart. Most of the times, the changed files are of driver/pci/ directory.

For re-compiling the kernel, I do following steps.

make clean
make bzImage
make install


Are these steps enough for the made changes to take effect properly ?

Normally compiling the new kernel along with its modules takes following steps

make clean
make modules
make modules_install
make bzImage
make install


But make modules and the step after that takes a long time and besides as per my understanding they are for compiling the modules. As in my case, the core kernel code is changing, do I need to issue these two commands as well???

Can you suggest some steps which I am missing here.

Thanks.

evo2 02-18-2010 07:42 PM

I'd suggest that the way to make your rebuilds faster is to not do the "make clean". However, for this to work the Makefiles need to "good".

Evo2.


All times are GMT -5. The time now is 06:38 PM.