Building kernels the Debian way
On Mon, 08 Dec 2008 23:45:08 +0100
Sven Joachim <firstname.lastname@example.org> wrote:
> On 2008-12-08 23:01 +0100, Jochen Schulz wrote:
> > Sven Joachim:
> >> Finally, some good advice. But before this step, you need to copy your
> >> old config to linux-126.96.36.199/.config and cd to the kernel directory.
> > The copy should be unnecessary as long as the current config is
> > available from /proc/config.gz.
> "As long as it available", but is it? I thought the Debian kernels are
> built without CONFIG_IKCONFIG_PROC because that wastes some memory and
> the config is always available from /boot/config-$(uname-r).
You have the config in /boot/config-<kernel version>
That way it doesn't take memory.
> > Either way, I suggest to go through the hassle to start with a minimal
> > configuration and only enable those options you need now (or which you
> > think you may need later). This has two main benefits: kernel compile
> > time drops *significantly* and you don't need to mess with initrds.
> And has the additional benefit that you learn a lot the hard way by
> building kernels that fail to boot or lack important features. In this
> case, however, it is best not to bother with make-kpkg at all; the
> "make && make install && make modules_install" triplet will save a lot
> of time on subsequent compilations.
make-kpkg doesn't rebuild everything, just the same as make. If you want to
change the version number you can just remove the debian directory and do
make-kpkg again with a different --revision
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact email@example.com