compile new debian kernel

document

www.debian.org/releases/stable/i386/ch08s06.html.en

1. install pkgs

apt-get install kernel-package fakeroot linux-source pkg-config libncurses5-dev libqt4-dev

2. download kernel source

Assuming /usr/src/linux-source-3.16.tar.xz is the source code.

3. make

copy current kernel config from /boot/config-*

make menuconfig/xconfig

make-kpkg clean

fakeroot make-kpkg –initrd –revision=1.0custom kernel_image

4. install

dpkg -i ../linux-image-xxx.deb