make-kpkg is a tool which handles kernel building. It automates lots of stuff, so that you won't forget something, and makes it into a debian package Thus, it's easier to install/uninstall.
make-kpkg command line options:
--append-to-version=xxx Call the kernel 2.6.16xxx, so that you can keep multiple versions installed. I always do rkd1, rkd2, etc.
Run these commands:
#You must clean it each time you run it: fakeroot make-kpkg clean fakeroot make-kpkg --append-to-version=xxxx kernel_image fakeroot make-kpkg --append-to-version=xxxx kernel_headers # you want the headrers, too. # You really should do this. To make modules for a preexisting kernel source: # Go to the top level of the right kernel source directory, it # will use headers from $PWD make-kpkg --rootcmd fakeroot clean # The comma separated list is either directories in # /usr/src/modules/ or full paths. make-kpkg --rootcmd fakeroot modules_image \ --added-modules comma,separated,list --append-to-version xxx
Using the debian source with only minor changes:
Packages to install
- libncurses5-dev (for kernel config with "make menuconfig")
- fakeroot (for make-kpkg)