LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Hard code Linux kernel version (https://www.linuxquestions.org/questions/linux-general-1/hard-code-linux-kernel-version-4175464771/)

binladen_vn88 06-05-2013 01:34 AM

Hard code Linux kernel version
 
I'm working on Linux kernel 3.4.47, once i compile kernel source code, kernel version is not only 3.4.47, but as 3.4.47-xxx.
It's not convenient when i booting with new kernel, system request correlative modules.
How do i fix Linux kernel version look like: 3.4.47 (only)?
Thank so much!

druuna 06-05-2013 01:50 AM

Is this what you are looking for:
Code:

make menuconfig
General setup  ---> Local version - append to kernel release

This options might contain the xxx value you are talking about.

From the Help section:
Quote:

CONFIG_LOCALVERSION:

Append an extra string to the end of your kernel version.
This will show up when you type uname, for example.
The string you set here will be appended after the contents of
any files with a filename matching localversion* in your
object and source tree, in that order. Your total string can
be a maximum of 64 characters.

binladen_vn88 06-05-2013 02:24 AM

Quote:

Originally Posted by druuna (Post 4965641)
Is this what you are looking for:
Code:

make menuconfig
General setup  ---> Local version - append to kernel release

This options might contain the xxx value you are talking about.

From the Help section:

Thank you so much!


All times are GMT -5. The time now is 11:55 AM.