History

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.

Masahiro Yamada committed 2 years ago

Commit bea2c5e1 parent b95d0892 files · +2 −8Browse files

Unified · Split

2 files
  1. Documentation/kbuild/kconfig-language.rst +2 −2
  2. scripts/kconfig/parser.y +0 −6
Documentation/kbuild/kconfig-language.rst+2−2
@@ -412,8 +412,8 @@ choices:: · 411 unmodified lines
412412 <choice block>
413413 "endchoice"
414414
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.
417417
418418 A choice only allows a single config entry to be selected.
419419
scripts/kconfig/parser.y+0−6
@@ -293,12 +293,6 @@ choice_option: T_PROMPT T_WORD_QUOTE if_expr T_EOL · 292 unmodified lines
293293 printd(DEBUG_PARSE, "%s:%d:prompt\n", cur_filename, cur_lineno);
294294 };
295295
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−
302296 choice_option: T_DEFAULT nonconst_symbol if_expr T_EOL
303297 {
304298 menu_add_symbol(P_DEFAULT, $2, $3);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t