How to change the kernel version string?

I am very new to Linux and very new to creating / compiling my own kernel. For starters, I'm just trying to figure out how to change the version string of my kernel. For example, when I do uname -a, it prints "Linux localhost.localdomain 3.11.10-100.fc18.i686". I would like to tweak this, but I'm not sure which file to edit. I know that it must be some kind of file in my kernel directory, but I went through them with no luck. Any help would be great!

+5
source share
1 answer

There are four lines at the top of the top-level Makefile

VERSION = 3 PATCHLEVEL = 18 SUBLEVEL = 7 EXTRAVERSION = 

The values ​​are different for different versions of the kernel, of course. They are used to build the version string, so changing them before creating the kernel changes the version string of the kernel that you create.

In addition, there is a CONFIG_LOCALVERSION configuration CONFIG_LOCALVERSION , which is located under General Setup -> Local version - append to kernel release in the make menuconfig , which is added to this.

+10
source

Source: https://habr.com/ru/post/1214036/


All Articles