path: root/scripts
diff options
authorMasahiro Yamada <masahiroy@kernel.org>2019-12-17 13:14:18 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2020-01-07 02:18:44 +0900
commit801b27db4638da1a7681865f2c6aab5270c5a29b (patch)
treebfe14b7c134271d08ab89f899386195b7801de7c /scripts
parentkconfig: use parent->dep as the parentdep of 'menu' (diff)
kconfig: drop T_WORD from the RHS of 'prompt' symbol
Commit 8636a1f9677d ("treewide: surround Kconfig file paths with double quotes") killed use-cases to reduce an unquoted string into the 'prompt' symbol. Kconfig still allows to use an unquoted string in the context of menu, source, or prompt. So, you can omit quoting if the prompt is a single word: bool foo ..., but I do not think this is so useful. Let's require quoting: bool "foo" All the Kconfig files in the kernel are written in this way. Remove the T_WORD from the right-hand side of the symbol 'prompt'. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts')
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/kconfig/parser.y b/scripts/kconfig/parser.y
index b3eff9613cf8..57f1225214cb 100644
--- a/scripts/kconfig/parser.y
+++ b/scripts/kconfig/parser.y
@@ -434,9 +434,7 @@ prompt_stmt_opt:
menu_add_prompt(P_PROMPT, $1, $2);
-prompt: T_WORD
+prompt: T_WORD_QUOTE
end: T_ENDMENU T_EOL { $$ = "menu"; }
| T_ENDCHOICE T_EOL { $$ = "choice"; }