As I regularly needs this, his is the way I'm recompiling my Linux kernel:
- apt-get install build-essential
- apt-get install linux-source-2.6.26
Go to /usr/src and decompress the kernel source. It's the kernel soruce of the Debian kernel, with the Debian changes and patches.
- Copy the config to the kernel soruce folder: cp /boot/config-2.6.26-2-amd64 /usr/src/linux-source-2.6.26/.config
- cd /usr/src/linux-source-2.6.26/
- Apply the changes you want to use in the .config file
- make-kpkg --initrd --append-to-version "amd64vmware1" --revision 2.6.26-2 buildpackage
And you have your new kernel, in a Debian package, in /usr/src. If you want to recompile your kernel, with other options:
- cd /usr/src/linux-source-2.6.26/
- make-kpkg clean
- Apply the changes you want to use in the .config file
- make-kpkg --initrd --append-to-version "amd64vmware2" --revision 2.6.26-2 buildpackage
Every time you recompile an other version, maybe change the "append-to-version" ...