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

Configure Feed

Select the types of activity you want to include in your feed.

kconfig: remove support for "bool" prompt for choice entries

Since commit fde192511bdb ("kconfig: remove tristate choice support"),
all choice blocks are now boolean. There is no longer a need to specify
the choice type explicitly.

All "bool" prompts in choice entries have been converted to "prompt".

This commit removes support for the "bool" syntax in choice entries.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>

+2 -8
+2 -2
Documentation/kbuild/kconfig-language.rst
··· 412 412 <choice block> 413 413 "endchoice" 414 414 415 - This defines a choice group and accepts any of the above attributes as 416 - options. 415 + This defines a choice group and accepts "prompt", "default", "depends on", and 416 + "help" attributes as options. 417 417 418 418 A choice only allows a single config entry to be selected. 419 419
-6
scripts/kconfig/parser.y
··· 293 293 printd(DEBUG_PARSE, "%s:%d:prompt\n", cur_filename, cur_lineno); 294 294 }; 295 295 296 - choice_option: T_BOOL T_WORD_QUOTE if_expr T_EOL 297 - { 298 - menu_add_prompt(P_PROMPT, $2, $3); 299 - printd(DEBUG_PARSE, "%s:%d:bool\n", cur_filename, cur_lineno); 300 - }; 301 - 302 296 choice_option: T_DEFAULT nonconst_symbol if_expr T_EOL 303 297 { 304 298 menu_add_symbol(P_DEFAULT, $2, $3);