Skip to content

Commit df835c2

Browse files
committed
kconfig: Document the new "visible if" syntax
Signed-off-by: Michal Marek <mmarek@suse.cz>
1 parent 2d80eb0 commit df835c2

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

‎Documentation/kbuild/kconfig-language.txt‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,13 @@ applicable everywhere (see syntax).
113113
That will limit the usefulness but on the other hand avoid
114114
the illegal configurations all over.
115115

116+
- limiting menu display: "visible if" <expr>
117+
This attribute is only applicable to menu blocks, if the condition is
118+
false, the menu block is not displayed to the user (the symbols
119+
contained there can still be selected by other symbols, though). It is
120+
similar to a conditional "prompt" attribude for individual menu
121+
entries. Default value of "visible" is true.
122+
116123
- numerical ranges: "range" <symbol> <symbol> ["if" <expr>]
117124
This allows to limit the range of possible input values for int
118125
and hex symbols. The user can only input a value which is larger than
@@ -303,7 +310,8 @@ menu:
303310
"endmenu"
304311

305312
This defines a menu block, see "Menu structure" above for more
306-
information. The only possible options are dependencies.
313+
information. The only possible options are dependencies and "visible"
314+
attributes.
307315

308316
if:
309317

0 commit comments

Comments
 (0)