Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Randy Dunlap and committed by
Linus Torvalds
9dfb563b 7420884c

+24 -2
+22 -1
README
··· 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
+2 -1
scripts/kconfig/conf.c
··· 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> ··· 532 531 break; 533 532 case 'h': 534 533 case '?': 535 - printf("%s [-o|-s] config\n", av[0]); 534 + fprintf(stderr, "See README for usage info\n"); 536 535 exit(0); 537 536 } 538 537 }