LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 08-22-2010, 09:08 AM   #1
aarsh
Member
 
Registered: Mar 2010
Location: USA
Distribution: Ubuntu MATE
Posts: 182

Rep: Reputation: 18
Exclamation Config file


Hi all !
I am right now reading a book named "Linux Kernel in a nut Shell"
by O'REILLY.
In this book the author teaches how can we make multiple .config files via xonfig OR gconfig tools.

Now suppose I've created such different different files for different purposes. Now my doubt is that how can we switch between one configuration to the another ??
 
Old 08-22-2010, 09:15 AM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Whichever file is named ".config" is the one that will be used when you run make. If you have numerous config files, they will each presumably have slightly different names, with the names indicating some build version or change you've made. For me, for example, if I build numerous kernels of the same kernel version, I add a suffix like -b0, -b1, -b2 etc., to the config filename. Then, if I want to build a particular version or configuration, I either:

1-- start `xconfig`, load the file I want, and save it as .config

or

2-- copy the file I want to use and call it .config

Then run `make clean` and `make` etc..


If you've got numerous kernels built, from different config files, you still can run only one kernel at a time anyway - if you want to try a kernel that was built from a different file, you'll need to reboot.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
system-config-printer config file(s) frenkiel Linux - Software 0 06-06-2006 07:41 AM
I have an XF86 config file for video, how do I turn it into XORG config lowpingnoob Linux - Newbie 18 06-12-2005 12:07 PM
X config tool not creating X config file Pingus Debian 3 05-02-2005 11:49 AM
krfb --config; Format of config file? Need to allow ports below 1024. SavvyPlayer Linux - Software 0 10-16-2004 08:28 PM
Lan Config file / internet config file Raven_X_Neo Linux - Networking 1 10-30-2002 01:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

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