Skip to contentSkip to conversation

linux's make oldconfig: Save in addition to [N/m/y/?], and ctrl-[C/\] to abort

DISCUSSION Regid Ichira 2 participants 4 messages Sep 7, 2013 – Sep 11, 2013 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

I find it useful to have the kernel configuration automatically
pointing out only the NEW kernel configuration options. Quite often, the kernel's

    $ make oldconfig

takes a long time. In particular, when I am trying to find out more information on the NEW features. The options that I am aware of when in the middle of make oldconfig are
1. [N/m/y/?] (and sometime one of these, say m, is not applicable)
2. ctrl-[C/\] to abort
Do you agree that besides it is desirable to have a Save to file option? That is,
(3. Save to file and continue to configure)
This way, one might be able to return to where the work was left in the middle.
In addition, probably a
(4. Quit)
is also required, so that one can leave the configuration process in an orderly manner.

#1 lore raw
Quoted 7 lines · Regid Ichira

I find it useful to have the kernel configuration automatically pointing out only the NEW kernel configuration options. Quite often, the kernel's

    $ make oldconfig
Quoted 14 lines

takes a long time. In particular, when I am trying to find out more information on the NEW features. The options that I am aware of when in the middle of make oldconfig are
1. [N/m/y/?] (and sometime one of these, say m, is not applicable)
2. ctrl-[C/\] to abort
Do you agree that besides it is desirable to have a Save to file option? That is,
(3. Save to file and continue to configure)
This way, one might be able to return to where the work was left in the middle.
In addition, probably a
(4. Quit)
is also required, so that one can leave the configuration process in an orderly manner.

You can do

yes "" | make oldconfig > oldconfig-output.txt
grep "(NEW)" oldconfig-output.txt

to see all the new options.

#2 lore raw
Quoted 23 lines · Tom H
Quoted 7 lines · Regid Ichira

I find it useful to have the kernel configuration automatically pointing out only the NEW kernel configuration options. Quite often, the kernel's

    $ make oldconfig
Quoted 14 lines

takes a long time. In particular, when I am trying to find out more information on the NEW features. The options that I am aware of when in the middle of make oldconfig are
1. [N/m/y/?] (and sometime one of these, say m, is not applicable)
2. ctrl-[C/\] to abort
Do you agree that besides it is desirable to have a Save to file option? That is,
(3. Save to file and continue to configure)
This way, one might be able to return to where the work was left in the middle.
In addition, probably a
(4. Quit)
is also required, so that one can leave the configuration process in an orderly manner.

Quoted 6 lines

You can do

yes "" | make oldconfig > oldconfig-output.txt
grep "(NEW)" oldconfig-output.txt

to see all the new options.

I meant the operation after I skimmed the new options. Suppose I
did what you suggested. Now I run make oldconfig in order to actually create a new config, based on a current one. And that is taking me more time then I thought it would. So I want to manually save what I did so far. Perhaps there is an unexpected shutdown within 5 minutes. Or I have to spend some time on other issues. Or whatever. How would I save my current work?
If you'll remember that most editors (automatically) create backups for the current work every 1 hour, or so, you might better understand what I meant.

#4 lore raw
In reply to a message not in the archive
Quoted 10 lines · Regid Ichira
Quoted 3 lines · John D. Hendrickson and Sara Darnell

2) you can run make oldconfig to get a recycled config without running in text interactive mode [y/n/m]. read the directions.

Do you mean the yes pipe that Tom H <tomh ... gmail.com> was referring to ealier in this thread? But you can not get a thoughtful config file by that manner. I mean, I don't want a kernel with lots of features I don't need. And I am trying to both config the kernel AND learn what new features that are of interest to me were added.

I wasn't suggesting that you use the config generated by 'yes "" | ...' only that you use it to list the new config options.

Looking at "make help", there's (now?) a "make listnewconfig" option to do just that.

Regarding interrupting "make oldconfig", I don't see any option at the moment except run "make menuconfig", set some options, save the config, exit, and return to make menuconfig" later.