diff options
author | Dirk Gouders <dirk@gouders.net> | 2016-04-29 06:43:38 -0400 |
---|---|---|
committer | Michal Marek <mmarek@suse.com> | 2016-05-10 11:30:14 -0400 |
commit | 032a3187194e050383d7c2df804b194b6fecc6f3 (patch) | |
tree | 9920a4ba1e08d6cac24130fab394909aa15f2b15 /Documentation | |
parent | 3e2ba95f43360f22b882965d153e9cf3087de986 (diff) |
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: Dirk Gouders <dirk@gouders.net>
Signed-off-by: Michal Marek <mmarek@suse.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/kbuild/kconfig-language.txt | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/Documentation/kbuild/kconfig-language.txt b/Documentation/kbuild/kconfig-language.txt index 14dd13150aa3..db101857b2c9 100644 --- a/Documentation/kbuild/kconfig-language.txt +++ b/Documentation/kbuild/kconfig-language.txt | |||
@@ -284,12 +284,17 @@ choices: | |||
284 | "endchoice" | 284 | "endchoice" |
285 | 285 | ||
286 | This defines a choice group and accepts any of the above attributes as | 286 | This defines a choice group and accepts any of the above attributes as |
287 | options. A choice can only be of type bool or tristate, while a boolean | 287 | options. A choice can only be of type bool or tristate. If no type is |
288 | choice only allows a single config entry to be selected, a tristate | 288 | specified for a choice, it's type will be determined by the type of |
289 | choice also allows any number of config entries to be set to 'm'. This | 289 | the first choice element in the group or remain unknown if none of the |
290 | can be used if multiple drivers for a single hardware exists and only a | 290 | choice elements have a type specified, as well. |
291 | single driver can be compiled/loaded into the kernel, but all drivers | 291 | |
292 | can be compiled as modules. | 292 | While a boolean choice only allows a single config entry to be |
293 | selected, a tristate choice also allows any number of config entries | ||
294 | to be set to 'm'. This can be used if multiple drivers for a single | ||
295 | hardware exists and only a single driver can be compiled/loaded into | ||
296 | the kernel, but all drivers can be compiled as modules. | ||
297 | |||
293 | A choice accepts another option "optional", which allows to set the | 298 | A choice accepts another option "optional", which allows to set the |
294 | choice to 'n' and no entry needs to be selected. | 299 | choice to 'n' and no entry needs to be selected. |
295 | If no [symbol] is associated with a choice, then you can not have multiple | 300 | If no [symbol] is associated with a choice, then you can not have multiple |