xref: /aosp_15_r20/external/coreboot/util/kconfig/patches/0010-reenable-source-in-choice.patch (revision b9411a12aaaa7e1e6a6fb7c5e057f44ee179a49c)
1Kconfig 5.8 (since commit 09d5873e4d1f70202314b5fe40160f9b14b9d2d0)
2blocks using the source statement within choice but that's a pattern we
3use intensively. Re-enable it.
4
5Index: kconfig/parser.y
6===================================================================
7--- kconfig.orig/parser.y
8+++ kconfig/parser.y
9@@ -134,6 +134,7 @@ stmt_list_in_choice:
10 	| stmt_list_in_choice comment_stmt
11 	| stmt_list_in_choice config_stmt
12 	| stmt_list_in_choice if_stmt_in_choice
13+	| stmt_list_in_choice source_stmt
14 	| stmt_list_in_choice error T_EOL	{ zconf_error("invalid statement"); }
15 ;
16
17