Commit 9dfb563b07b1aafcd7d40528ebfa7f9ce28f0556

Authored by Randy Dunlap
Committed by Linus Torvalds
1 parent 7420884c03

[PATCH] config: update usage/help info

Replace outdated help message with a reference to README.  Update README
for make *config variants and environment variable info.

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

Showing 2 changed files with 24 additions and 2 deletions Side-by-side Diff

... ... @@ -165,10 +165,31 @@
165 165 "make xconfig" X windows (Qt) based configuration tool.
166 166 "make gconfig" X windows (Gtk) based configuration tool.
167 167 "make oldconfig" Default all questions based on the contents of
168   - your existing ./.config file.
  168 + your existing ./.config file and asking about
  169 + new config symbols.
169 170 "make silentoldconfig"
170 171 Like above, but avoids cluttering the screen
171 172 with questions already answered.
  173 + "make defconfig" Create a ./.config file by using the default
  174 + symbol values from arch/$ARCH/defconfig.
  175 + "make allyesconfig"
  176 + Create a ./.config file by setting symbol
  177 + values to 'y' as much as possible.
  178 + "make allmodconfig"
  179 + Create a ./.config file by setting symbol
  180 + values to 'm' as much as possible.
  181 + "make allnoconfig" Create a ./.config file by setting symbol
  182 + values to 'n' as much as possible.
  183 + "make randconfig" Create a ./.config file by setting symbol
  184 + values to random values.
  185 +
  186 + The allyesconfig/allmodconfig/allnoconfig/randconfig variants can
  187 + also use the environment variable KCONFIG_ALLCONFIG to specify a
  188 + filename that contains config options that the user requires to be
  189 + set to a specific value. If KCONFIG_ALLCONFIG=filename is not used,
  190 + "make *config" checks for a file named "all{yes/mod/no/random}.config"
  191 + for symbol values that are to be forced. If this file is not found,
  192 + it checks for a file named "all.config" to contain forced values.
172 193  
173 194 NOTES on "make config":
174 195 - having unnecessary drivers will make the kernel bigger, and can
scripts/kconfig/conf.c
... ... @@ -5,6 +5,7 @@
5 5  
6 6 #include <ctype.h>
7 7 #include <stdlib.h>
  8 +#include <stdio.h>
8 9 #include <string.h>
9 10 #include <unistd.h>
10 11 #include <time.h>
... ... @@ -531,7 +532,7 @@
531 532 break;
532 533 case 'h':
533 534 case '?':
534   - printf("%s [-o|-s] config\n", av[0]);
  535 + fprintf(stderr, "See README for usage info\n");
535 536 exit(0);
536 537 }
537 538 }