If new choice values are added with new dependency, and they become
visible during user configuration, oldconfig should recognize them
as (NEW), and ask the user for choice.
This issue was fixed by commit 5d09598d48
("kconfig: fix new choices
being skipped upon config update").
This is a subtle corner case. Add a test case to avoid breakage.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Ulf Magnusson <ulfalizer@gmail.com>
38 lines
473 B
Plaintext
38 lines
473 B
Plaintext
config A
|
|
bool "A"
|
|
help
|
|
This is a new symbol.
|
|
|
|
choice
|
|
prompt "Choice ?"
|
|
depends on A
|
|
help
|
|
"depends on A" has been newly added.
|
|
|
|
config CHOICE_B
|
|
bool "Choice B"
|
|
|
|
config CHOICE_C
|
|
bool "Choice C"
|
|
help
|
|
This is a new symbol, so should be asked.
|
|
|
|
endchoice
|
|
|
|
choice
|
|
prompt "Choice2 ?"
|
|
|
|
config CHOICE_D
|
|
bool "Choice D"
|
|
|
|
config CHOICE_E
|
|
bool "Choice E"
|
|
|
|
config CHOICE_F
|
|
bool "Choice F"
|
|
depends on A
|
|
help
|
|
This is a new symbol, so should be asked.
|
|
|
|
endchoice
|