Commit 0719e1d2 authored by Yann E. MORIN's avatar Yann E. MORIN Committed by Michal Marek

Documentation/kbuild: add info that 'choice' can have a symbol name

Changeset 5a1aa8a1 added the possibility to name a choice,
and to have the same choice be defined multiple times.
But the documentation was forgotten, so this updates it accordingly.

Thanks to Arnaud Lacombe for pointing it to me in the first place:
  http://www.spinics.net/lists/linux-kbuild/msg03940.htmlSigned-off-by: default avatar"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Cc: Roman Zippel <zippel@linux-m68k.org>
Cc: Arnaud Lacombe <lacombar@gmail.com>
Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
parent f0a6332c
...@@ -268,7 +268,7 @@ separate list of options. ...@@ -268,7 +268,7 @@ separate list of options.
choices: choices:
"choice" "choice" [symbol]
<choice options> <choice options>
<choice block> <choice block>
"endchoice" "endchoice"
...@@ -282,6 +282,10 @@ single driver can be compiled/loaded into the kernel, but all drivers ...@@ -282,6 +282,10 @@ single driver can be compiled/loaded into the kernel, but all drivers
can be compiled as modules. 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
definitions of that choice. If a [symbol] is associated to the choice,
then you may define the same choice (ie. with the same entries) in another
place.
comment: comment:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment