LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-04-2008, 03:18 PM   #1
scrat75
LQ Newbie
 
Registered: Aug 2008
Location: Italy
Distribution: Ubuntu 9.04
Posts: 13

Rep: Reputation: 0
How to exit and save (or just to exit) inside a "make config" running command?


Hi guys,

I'm a newbie, and I'm reading the good book "Linux Kernel in a Nutshell".

I'm reading chapter 4, that explains how to configure and build the
kernel. The author Greg Hartman explains how to build the configuration file .config using the "make config" command, starting from a vanilla
kernel downloaded from kernel.org site.

My question is: Which command should I use to save the choices for the
option group made and to exit? Or which command only to exit discarding
the job?

Thanks in advance for your answers and for your help!
 
Old 09-04-2008, 04:22 PM   #2
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 82
try the key combination ctrl+c, this will close any program running in the console.
 
Old 09-04-2008, 04:38 PM   #3
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,240

Rep: Reputation: 121Reputation: 121
Normally, you would "cp /boot/config-`uname -r` .config" (note the back-quotes) and then run "make oldconfig" on that to set the new options. If you're just wanting to make a config from scratch, the easiest is probably "make menuconfig". In menuconfig, use the arrow keys and enter key to navigate. When you choose enough exits, it'll ask you whether you want to save or not.
 
Old 09-04-2008, 04:54 PM   #4
scrat75
LQ Newbie
 
Registered: Aug 2008
Location: Italy
Distribution: Ubuntu 9.04
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks Quakeboy02 for your suggestions,
but how to save and exit when using only "make config"? It's not so important,
it's just to satisfy my curiosity in the case using only "make config", even
if your method ("cp /boot/config-`uname -r` .config" and the "make oldconfig")
is certainly better!
 
Old 09-04-2008, 04:56 PM   #5
scrat75
LQ Newbie
 
Registered: Aug 2008
Location: Italy
Distribution: Ubuntu 9.04
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks irishbitte!,

but if I press ctrl-c, then "make config" terminates without saving my previous
choices..
 
Old 09-04-2008, 05:50 PM   #6
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,240

Rep: Reputation: 121Reputation: 121
Quote:
Originally Posted by scrat75 View Post
Thanks Quakeboy02 for your suggestions,
but how to save and exit when using only "make config"?
As is often the case, the easiest thing to do is to just run the thing. "make config" is a text based config file generator. It steps you through each individual config option, all the way through to the end. There is no method, that I can see, to exit and save an incomplete config file. I believe it is meant to be run through to completion.
 
Old 09-05-2008, 04:02 PM   #7
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 82
Hi scrat,

As quakeboy says, the easiest thing to do is run the thing. even if you manage to save where it stops, it may not run again from there. Try running

Code:
make config
when you're going to bed for a few hours or something! ctrl+c just kills the program running in console, and dumps everything from memory, so it won't ever save what you've done.
hope that helps!
 
  


Reply

Tags
kernel


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
tar "Error exit delayed from previous errors" using "-C /" ToK Linux - Software 2 03-19-2008 06:49 AM
"I've detected a panel already running, and will now exit" FlipHDK Linux - General 3 12-07-2006 10:43 AM
http config program doesnt save and exit!!! benrose111488 Linux - Software 0 06-09-2004 08:02 AM
problem with "rpm -bb" , 1 out of 1 hunk ignored ...error: Bad exit status from /v wohaolouis Linux - Software 0 03-07-2004 07:12 AM
how to "exit to command prompt" hesher Linux - Newbie 3 06-07-2003 07:11 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration