Re: Building vanilla kernel .debs
another user popped up with exacltly the same questions,
need to start a wiki page somewhere on wiki.d.o,
so got kicked in playing around.
On Mon, 26 Oct 2009, Marc Haber wrote:
> On Sun, Oct 18, 2009 at 10:21:00PM +0200, maximilian attems wrote:
> > On Sun, Oct 18, 2009 at 09:53:58PM +0200, Marc Haber wrote:
> > > append a string to the version number and a debian revision.
> > if you set KDEB_PKGVERSION you can set both, the debian revision
> > is controled by .version.
> I actually mean the upstream version, not the actual version of the
> resulting Debian package. When one uses make-kpkg --append=-foo
> --revision=126.96.36.199.20091013.0, one gets, for example, a
> linux-image-188.8.131.52-foo_184.108.40.206.20091013.0_i386.deb of a kernel
> which actually returns 220.127.116.11-foo as answer to uname -r. This is
> important if one wants to have different kernel flavours including
> their own module directory.
> The equivalent to --revision is KDEB_PKGVERSION, but I haven't yet
> found a way to emulate --append, since this probably needs
> modification to the upstream version number ending up in
> include/linux/utsrelease.h. Is there a variable for this as well, or
> is the official way to do so parsing EXTRAVERSION from the top-level
> Makefile and make all EXTRAVERSION=$EXTRAVERSION-foo?
indeed KDEB_PKGVERSION sets the debian revision.
well EXTRAVERSION is not recommend to play around.
a better way to append a string to upstream version
(in my game "-foo" was "-grml") is to set CONFIG_LOCALVERSION:
~/src/linux-2.6$ egrep LOCALVERSION .config
# CONFIG_LOCALVERSION_AUTO is not set
current tree called with
KDEB_PKGVERSION="grml.00~2.6.32-rc6.20091104" fakeroot make deb-pkg j=2
dpkg-deb: building package `linux-image-2.6.32-rc6-grml' in `../linux-image-2.6.32-rc6-grml_grml.00~2.6.32-rc6.20091104_amd64.deb'.
hope that helps, now soon this should end in a more readable doc..