Skip to content

Commit

Permalink
kconfig: make oldconfig is now less chatty
Browse files Browse the repository at this point in the history
Previously when running "make oldconfig" we saw all the propmt lines
from kconfig and noone actully read this.

With this patch the user will only see output if there is new symbols.
This will be seen as "make oldconfig" runs which does not generate any output.

A typical run now looks like this:

$ make oldconfig
scripts/kconfig/conf -o arch/x86/Kconfig
$

If a new symbol is found then we restart the config process like this:
$ make oldconfig
scripts/kconfig/conf -o arch/x86/Kconfig
*
* Restart config...
*
*
* General setup
*
Prompt for development and/or incomplete code/drivers (EXPERIMENTAL) [Y/n/?] y
Local version - append to kernel release (LOCALVERSION) []
...

The bahaviour is similar to what we know when running the implicit
oldconfig target "make silentoldconfig".
"make silentoldconfig" are run as part of the kernel build process
if the configuration has changed.

Signed-off-by: Sam Ravnborg <[email protected]>
Cc: Roman Zippel <[email protected]>
  • Loading branch information
sravnborg committed Jul 25, 2008
1 parent f443d2e commit cd9140e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/kconfig/conf.c
Original file line number Diff line number Diff line change
Expand Up @@ -590,10 +590,10 @@ int main(int ac, char **av)
conf_set_all_new_symbols(def_random);
break;
case ask_silent:
case ask_new:
if (conf_silent_update())
exit(1);
break;
case ask_new:
case ask_all:
case set_default:
if (conf_update())
Expand Down

0 comments on commit cd9140e

Please sign in to comment.