[ale] compiling kernel with version modifier

Ed Cashin ecashin at noserose.net
Thu Mar 3 08:18:08 EST 2016


For an "upstream" kernel from kernel.org (which is where Ubuntu ultimately
is getting the kernels), there is a README in the sources that says,

   Alternatively, before compiling, use the kernel config option
   "LOCALVERSION" to append a unique suffix to the regular kernel version.
   LOCALVERSION can be set in the "General Setup" menu.


https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/README#n287

... and if you do a "make menuconfig", for example, and type in a value for
the LOCALVERSION, then it does show up in the output of "uname -r".  If you
are want, you can even just edit the EXTRAVERSION value in the Makefile,
adding your suffix there.


https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Makefile

I don't know how Ubuntu is building their kernel debs, but maybe now you
can look and see.  If they take that value and use it as the LOCALVERSION,
then you've got your answer.



On Wed, Mar 2, 2016 at 5:12 PM, Todor Fassl <fassl.tod at gmail.com> wrote:

> I need to compile my own kernel with a patch for hardware speech. One
> thing I do not understand about building a kernel is how to get it to have
> a unique name so I can tell if a machine is using the custom kernel or the
> original one. The ubuntu documentation says this:
>
> > In order to make your kernel "newer" than the stock Ubuntu kernel
> > from which you are based you should add a local version modifier. Add
> > something like "+test1" to the end of the first version number in the
> > debian.master/changelog file, before building.
> The first line of debian.master/changelog looks like this:
> > linux (4.2.0-30.36) wily; urgency=high
>
> I am guessing the instructions mean to make that say something like this:
> > linux (4.2.0-30.36+test1) wily; urgency=high
>
> First of all, is that right? Second, is it possible for me to make it so
> if you say "uname -r", instead of displaying 4.3.0-30-generic, it shows
> 4.3.0-30-speakup? I think that would be the most clear way to show that
> this is not a generic ubuntu kernel.
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>



-- 
  Ed Cashin <ecashin at noserose.net>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20160303/4f76cf38/attachment.html>


More information about the Ale mailing list