LinuxQuestions.org
Help answer threads with 0 replies.
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 02-28-2011, 12:43 PM   #1
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Compiling Kernels


I have several systems here. I build three different kernels: one supporting more than 4GB RAM, one supporting up to 4 GB, and the other is heavily stripped kernel for some old PI and PII machines.

In the past I used the CONFIG_LOCALVERSION option to differentiate the kernels. Yet now I wonder whether this is a practical idea.

A problem arises when I want to compile updated packages that build kernel modules, such as nvidia, lirc, virtualbox, etc. The nvidia build seems particularly anal about embedded kernel version numbers.

As the kernel version is the same for each custom build other than the config file options, I would like to build generic packages that install on any machine and avoid building packages unique for each kernel build. Seems I need to avoid embedded version numbers to do that.

Is the solution simply to stop using CONFIG_LOCALVERSION and manually rename the individual kernels after compiling?
 
Old 02-28-2011, 12:48 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Probably. I've never rarely used it.

Last edited by syg00; 02-28-2011 at 12:52 PM.
 
Old 02-28-2011, 03:55 PM   #3
mlangdn
Senior Member
 
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,845

Rep: Reputation: 452Reputation: 452Reputation: 452Reputation: 452Reputation: 452
Hi Woodsman - How about using the EXTRAVERSION string in the top level Makefile?

VERSION = 2
PATCHLEVEL = 6
SUBLEVEL = 37
EXTRAVERSION = your custom name that identifies this machine
NAME = Flesh-Eating Bats with Fangs
 
Old 03-01-2011, 02:27 PM   #4
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Original Poster
Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Quote:
How about using the EXTRAVERSION string in the top level Makefile?
Noted. I'll try that next time I compile a kernel and some packages that create kernel modules. Hopefully I remember to post the results here.
 
  


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
Compiling other kernels bandrei Linux - Newbie 6 07-06-2006 06:13 PM
after compiling 2.6.11.7, none of the kernels will boot hubabuba Fedora 1 05-02-2005 11:31 AM
Compiling kernels 2.6.10 aufomechanic Linux - Newbie 2 02-08-2005 08:13 AM
getting/compiling kernels ninmonkeys Linux - General 1 11-06-2004 07:19 PM
compiling kernels Doug Hammond Linux - General 4 02-18-2003 02:32 PM

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

All times are GMT -5. The time now is 03:23 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