next up previous contents
Next: 7.6 LILO Up: 7. Building a New Previous: 7.4 Configuring for the   Contents

7.5 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
Next: 7.6 LILO Up: 7. Building a New Previous: 7.4 Configuring for the   Contents