LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-05-2013, 01:34 AM   #1
binladen_vn88
LQ Newbie
 
Registered: Jan 2013
Posts: 9

Rep: Reputation: Disabled
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!
 
Old 06-05-2013, 01:50 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
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.
 
1 members found this post helpful.
Old 06-05-2013, 02:24 AM   #3
binladen_vn88
LQ Newbie
 
Registered: Jan 2013
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by druuna View Post
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!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to filter the linux kernel code based on config file. removing unnecessary code atulmt Linux - Kernel 4 06-29-2013 11:14 PM
Compatible between kernel version and source code to compile module dungnguyen Linux - Kernel 1 10-22-2012 08:59 AM
how to cross compile code when the target is for another kernel version ? schneidz Linux - Embedded & Single-board computer 2 11-27-2011 11:20 PM
Please share "A Heavily Commented Linux Kernel Source Code" English version osdevkid Linux - Kernel 3 03-04-2011 12:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration