2. Using make-kpkg to build kernels

Caution

Note: make-kpkg was installed when you installed kernel-package

Once you have configured your kernel just save and exit, and don't use make-kpkg yet! I will show you a good way to make sure sure everything builds well.

Follow the instruction in the make-kpkg documentation but essentially:

You need to be in the
/usr/src/linux
directory, then

make-kpkg clean

to clean all the binaries out and prepare to build a new kernel, then:

make-kpkg --revision-custom.1.0 kernel_image

Caution

Don't Do this Yet!

We need to get the pcmcia-source ready to be built at the same time as the kernel is built. This is a very neat feature of make-kpkg!