=== chroot into the build environment === Depending on what may be installed on your system you may use "dchroot" or "schroot" to chroot into the build environment. For example: {{{ schroot -c lucid-i386 }}} You should chroot into a 64bit build environment to build 64bit kernel package, 32bit build environemt to build 32bit kernel package. === Setup the build tree === This step generates the debian control files required to build the kernel. The ''clean'' target is a bit of a misnomer here since we moved the generated files (control.stub, control) out of version control. The ''clean'' target actually creates these files. It is a known drawback, and unavoidable. {{{ fakeroot debian/rules clean }}} === Modify debian/changelog === Modify the debian/changelog file to reflect something unique about this build, for example, you may use a launchpad bug number that you might be building this kernel for. Modify the the first line, for example: {{{ linux (2.6.27-12.28) UNRELEASED; urgency=low }}} to {{{ linux (2.6.27-12.28~lpNNNNNNUSERNAME1) UNRELEASED; urgency=low }}} === Build the kernel package === * Arch specific builds: {{{ fakeroot debian/rules binary-generic }}} * All arches: {{{ fakeroot debian/rules binary-arch }}}