Building and Installing a &os; KernelBeing a kernel developer requires understanding of the kernel
build process. To debug the &os; kernel it is required to be able
to build one. There are two known ways to do so:The supported procedure to build and install a kernel is
documented in the Building and
Installing a Custom Kernel chapter of the &os;
Handbook.It is supposed that the reader of this chapter is familiar
with the information described in the Building
and Installing a Custom Kernel chapter of the &os;
Handbook. If this is not the case, please read through the
above mentioned chapter to understand how the build process
works.Building the Faster but Brittle WayBuilding the kernel this way may be useful when working on
the
kernel code and it may actually be faster than the
documented procedure when only a single option or two were
tweaked in the kernel configuration file. On the other hand,
it might lead to unexpected kernel build breakage.Run &man.config.8; to generate the kernel source
code:&prompt.root; /usr/sbin/config MYKERNELChange into the build directory. &man.config.8; will
print the name of this directory after being run as
above.&prompt.root; cd ../compile/MYKERNELCompile the kernel:&prompt.root; make depend
&prompt.root; makeInstall the new kernel:&prompt.root; make install