提交 032a3187 编写于 作者: D Dirk Gouders 提交者: Michal Marek

kconfig-language: elaborate on the type of a choice

The type of a choice can be specified explicitely or it will be
set according to members of the choice group, see menu.c:menu_finalize().
Signed-off-by: NDirk Gouders <dirk@gouders.net>
Signed-off-by: NMichal Marek <mmarek@suse.com>
上级 3e2ba95f
...@@ -284,12 +284,17 @@ choices: ...@@ -284,12 +284,17 @@ choices:
"endchoice" "endchoice"
This defines a choice group and accepts any of the above attributes as This defines a choice group and accepts any of the above attributes as
options. A choice can only be of type bool or tristate, while a boolean options. A choice can only be of type bool or tristate. If no type is
choice only allows a single config entry to be selected, a tristate specified for a choice, it's type will be determined by the type of
choice also allows any number of config entries to be set to 'm'. This the first choice element in the group or remain unknown if none of the
can be used if multiple drivers for a single hardware exists and only a choice elements have a type specified, as well.
single driver can be compiled/loaded into the kernel, but all drivers
can be compiled as modules. While a boolean choice only allows a single config entry to be
selected, a tristate choice also allows any number of config entries
to be set to 'm'. This can be used if multiple drivers for a single
hardware exists and only a single driver can be compiled/loaded into
the kernel, but all drivers can be compiled as modules.
A choice accepts another option "optional", which allows to set the A choice accepts another option "optional", which allows to set the
choice to 'n' and no entry needs to be selected. choice to 'n' and no entry needs to be selected.
If no [symbol] is associated with a choice, then you can not have multiple If no [symbol] is associated with a choice, then you can not have multiple
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册