LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-18-2010, 06:43 PM   #1
Rish.Ahm
LQ Newbie
 
Registered: Jun 2009
Posts: 6

Rep: Reputation: 0
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.
 
Old 02-18-2010, 08:42 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I want a faster box: recompiling/patching kernel way to go? ibkoxls Fedora 8 06-30-2008 08:14 AM
Error while patching RTLinux 2.6.9 kernel using kernel linux-2.6.9 krishna_karne Linux - Software 1 11-16-2007 11:36 PM
error while patching Rtlinux 3.1 kernel using kernel linux-2.4.29 dolreich_c Linux - General 0 08-10-2006 04:33 AM
patching linux kernel-2.4.20-8 with kdb enthusiast_abdul Programming 1 11-08-2005 10:11 AM
Patching & Recompiling problems SlackN00b Slackware 3 02-17-2004 01:21 PM


All times are GMT -5. The time now is 03:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration