Skip to content

Commit 0719e1d

Browse files
Yann E. MORINmichal42
authored andcommitted
Documentation/kbuild: add info that 'choice' can have a symbol name
Changeset 5a1aa8a 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.html Signed-off-by: "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: Michal Marek <mmarek@suse.cz>
1 parent f0a6332 commit 0719e1d

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎Documentation/kbuild/kconfig-language.txt‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ separate list of options.
268268

269269
choices:
270270

271-
"choice"
271+
"choice" [symbol]
272272
<choice options>
273273
<choice block>
274274
"endchoice"
@@ -282,6 +282,10 @@ single driver can be compiled/loaded into the kernel, but all drivers
282282
can be compiled as modules.
283283
A choice accepts another option "optional", which allows to set the
284284
choice to 'n' and no entry needs to be selected.
285+
If no [symbol] is associated with a choice, then you can not have multiple
286+
definitions of that choice. If a [symbol] is associated to the choice,
287+
then you may define the same choice (ie. with the same entries) in another
288+
place.
285289

286290
comment:
287291

0 commit comments

Comments
 (0)