Skip to content

Commit cedd55d

Browse files
marc-hbmasahir0y
authored andcommitted
kconfig: Remove silentoldconfig from help and docs; fix kconfig/conf's help
As explained by Michal Marek at https://lkml.org/lkml/2011/8/31/189 silentoldconfig has become a misnomer. It has become an internal interface so remove it from "make help" and Documentation/ to stop confusing people using it as seen for instance at https://chromium-review.googlesource.com/835632 Don't remove it from kconfig/Makefile yet not to break any (other) tool using it. On the other hand, correct and expand its description in the help of the (internal) scripts/kconfig/conf.c Signed-off-by: Marc Herbert <marc.herbert@intel.com> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
1 parent 1ccb271 commit cedd55d

3 files changed

Lines changed: 7 additions & 10 deletions

File tree

‎Documentation/admin-guide/README.rst‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,6 @@ Configuring the kernel
170170
your existing ./.config file and asking about
171171
new config symbols.
172172

173-
"make silentoldconfig"
174-
Like above, but avoids cluttering the screen
175-
with questions already answered.
176-
Additionally updates the dependencies.
177-
178173
"make olddefconfig"
179174
Like above, but sets new symbols to their default
180175
values without prompting.

‎scripts/kconfig/Makefile‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ config: $(obj)/conf
3434
nconfig: $(obj)/nconf
3535
$< $(silent) $(Kconfig)
3636

37+
# This has become an internal implementation detail and is now deprecated
38+
# for external use.
3739
silentoldconfig: $(obj)/conf
3840
$(Q)mkdir -p include/config include/generated
3941
$(Q)test -e include/generated/autoksyms.h || \
@@ -144,7 +146,6 @@ help:
144146
@echo ' oldconfig - Update current config utilising a provided .config as base'
145147
@echo ' localmodconfig - Update current config disabling modules not loaded'
146148
@echo ' localyesconfig - Update current config converting local mods to core'
147-
@echo ' silentoldconfig - Same as oldconfig, but quietly, additionally update deps'
148149
@echo ' defconfig - New config with default from ARCH supplied defconfig'
149150
@echo ' savedefconfig - Save current config as ./defconfig (minimal config)'
150151
@echo ' allnoconfig - New config where all options are answered with no'
@@ -153,8 +154,8 @@ help:
153154
@echo ' alldefconfig - New config with all symbols set to default'
154155
@echo ' randconfig - New config with random answer to all options'
155156
@echo ' listnewconfig - List new options'
156-
@echo ' olddefconfig - Same as silentoldconfig but sets new symbols to their'
157-
@echo ' default value'
157+
@echo ' olddefconfig - Same as oldconfig but sets new symbols to their'
158+
@echo ' default value without prompting'
158159
@echo ' kvmconfig - Enable additional options for kvm guest kernel support'
159160
@echo ' xenconfig - Enable additional options for xen dom0 and guest kernel support'
160161
@echo ' tinyconfig - Configure the tiniest possible kernel'

‎scripts/kconfig/conf.c‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -484,8 +484,9 @@ static void conf_usage(const char *progname)
484484
printf(" --listnewconfig List new options\n");
485485
printf(" --oldaskconfig Start a new configuration using a line-oriented program\n");
486486
printf(" --oldconfig Update a configuration using a provided .config as base\n");
487-
printf(" --silentoldconfig Same as oldconfig, but quietly, additionally update deps\n");
488-
printf(" --olddefconfig Same as silentoldconfig but sets new symbols to their default value\n");
487+
printf(" --silentoldconfig Similar to oldconfig but generates configuration in\n"
488+
" include/{generated/,config/} (oldconfig used to be more verbose)\n");
489+
printf(" --olddefconfig Same as oldconfig but sets new symbols to their default value\n");
489490
printf(" --oldnoconfig An alias of olddefconfig\n");
490491
printf(" --defconfig <file> New config with default defined in <file>\n");
491492
printf(" --savedefconfig <file> Save the minimal current configuration to <file>\n");

0 commit comments

Comments
 (0)