buildroot - how to change kernel version string

Bartlomiej Grzeskowiak picture Bartlomiej Grzeskowiak · Oct 16, 2012 · Viewed 15.7k times · Source

I work on SAM9G25 EK board with buildroot and Armstrong linux (Linux4sam). My script is creating linux version "2.6.39+" and this "+" is confusing (/lib/modules folder etc.). I want to remove it. I found only two files .uImage.cmd, and kernel.release that contains this string, but both are generated.

Where is this string created ?

Answer

alk picture alk · Oct 16, 2012

You have a .config? Look in there for the value assigned to CONFIG_LOCALVERSION.

To have no local version specifed in the kernel's release, either remove CONFIG_LOCALVERSION or comment it out by starting the line containing it by a #.

The default shall be:

#CONFIG_LOCALVERSION is not set