Personal tools
You are here: Home Members pacneil's Home Beginning Linux Compiling the Kernel
Navigation
Log in


Forgot your password?
New user?
 
Document Actions

Compiling the Kernel

by Neil Schneider last modified 2005-06-08 12:47

Compiling the Kernel

next up previous contents index
Next: LILO Up: Building a New Kernel Previous: Configuring for the compile

Compiling the Kernel

Now you are ready to do the kernel compile. Here are the commands.

root@localhost # make dep

root@localhost # make clean

root@localhost # make bzImage

root@localhost # make modules

root@localhost # make modules_install
However, you can save a little time, and simplify by stringing the commands together. There are two ways to string commands together on the command line, with the semi-colon ``;'' or the double ampersands ``&SPMamp;''. The semi-colons don't impose any conditions on the execution of the next command in the sequence. This could potentially waste time, and cause unnecessary complications. Potentially the kernel compile step could fail, but the modules build and install. The double ampersand says, only execute the next command, in the sequence, if the previous command succeeded. So in the example above, the make modules command would fail, if the make bzImage command wasn't successful.

Here's what the command line would look like, if you string the commands together.

root@localhost # make dep && make clean && make bzImage && make modules && make modules_install


next up previous contents index
Next: LILO Up: Building a New Kernel Previous: Configuring for the compile
2005-05-10

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: