I generally compile the kernel the debian way. Here is the list of steps that I do:
Code:
1.cd /usr/src/linux
2.make clean
3.cp /boot/config /usr/src/linux/.config
4.make xconfig
5.make-kpkg clean
6.fakeroot make-kpkg --append-to-version=-myname kernel_image
7.dpkg -i kernel_image-<version>
8.mkinitrd -o /boot/initrd.img-<kernel-version> <kernel-version>
i.e. mkinitrd -o /boot/initrd.img-2.6.13 2.613
Now the above methods works fine. But I have seen some people giving command number 6 as
fakeroot make-kpkg --append-to-version=-myname kernel_image kernel_headers
What is the difference between the two commands(with and without kernel_headers)? What is the purpose of kernel_headers and how are they useful to us?
Also can I some how omit the step number 8? Does make-kpkg have the capibility to build the initrd image also and install it?
Thanks