[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: recompiling the kernel with a different version name

On 04/07/2010 04:26 PM, Stephen Powell wrote:
On Wed, 7 Apr 2010 07:56:46 -0400 (EDT), Lorenzo Bettini wrote:

I've just recompiled the kernel from sources with the command

fakeroot make-kpkg --initrd --append-to-version=-recompiled kernel-image

and installed it successfully.

However, the kernel name is

and that "+drm33.1" seems to cause problems to Eclipse which does not
recognize it as a valid version (I think the problem is with the '+'

Is there a way to change the version so that I can do without that '+'?

thanks in advance

First of all, I don't know if you've already read this, but I recommend
the following web page to all those who need or want to compile a custom
kernel for Debian: http://www.wowway.com/~zlinuxman/Kernel.htm.  It should
tell you all you need to know (and probably a lot more than you wanted to

I tried also with --revision, e.g.,

fakeroot make-kpkg --revision=lore01 --initrd --append-to-version=-recompiled kernel-image kernel-headers

but I cannot seem to get rid of that +drm33.1 string:


My suspicion is that you may have set variables such as CONFIG_LOCALVERSION
and CONFIG_LOCALVERSION_AUTO while configuring the kernel.  Don't do that.
make-kpkg has it's own way of modifying the kernel version.  This is
covered under Step 8 in the next-to-last paragraph.

they do not seem to be set:

$ grep VERSION .config

Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
BLOGS: http://tronprog.blogspot.com  http://longlivemusic.blogspot.com

Reply to: