mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
1903c51190
The calculation of 'choice' is a bit complicated part in Kconfig. The behavior of 'y' choice is intuitive. If choice values are tristate, the choice can be 'm' where each value can be enabled independently. Also, if a choice is marked as 'optional', the whole choice can be invisible. Test basic functionality of choice. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Ulf Magnusson <ulfalizer@gmail.com>
54 lines
723 B
Text
54 lines
723 B
Text
config MODULES
|
|
bool "Enable loadable module support"
|
|
option modules
|
|
default y
|
|
|
|
choice
|
|
prompt "boolean choice"
|
|
default BOOL_CHOICE1
|
|
|
|
config BOOL_CHOICE0
|
|
bool "choice 0"
|
|
|
|
config BOOL_CHOICE1
|
|
bool "choice 1"
|
|
|
|
endchoice
|
|
|
|
choice
|
|
prompt "optional boolean choice"
|
|
optional
|
|
default OPT_BOOL_CHOICE1
|
|
|
|
config OPT_BOOL_CHOICE0
|
|
bool "choice 0"
|
|
|
|
config OPT_BOOL_CHOICE1
|
|
bool "choice 1"
|
|
|
|
endchoice
|
|
|
|
choice
|
|
prompt "tristate choice"
|
|
default TRI_CHOICE1
|
|
|
|
config TRI_CHOICE0
|
|
tristate "choice 0"
|
|
|
|
config TRI_CHOICE1
|
|
tristate "choice 1"
|
|
|
|
endchoice
|
|
|
|
choice
|
|
prompt "optional tristate choice"
|
|
optional
|
|
default OPT_TRI_CHOICE1
|
|
|
|
config OPT_TRI_CHOICE0
|
|
tristate "choice 0"
|
|
|
|
config OPT_TRI_CHOICE1
|
|
tristate "choice 1"
|
|
|
|
endchoice
|