Message ID | 20101126161511.GD9418@sepie.suse.cz (mailing list archive) |
---|---|
State | RFC |
Headers | show |
On Thu, Apr 28, 2011 at 10:38:02AM -0700, Randy Dunlap wrote: > On Fri, 26 Nov 2010 08:17:36 -0800 Randy Dunlap wrote: > > > On Fri, 26 Nov 2010 17:15:11 +0100 Michal Marek wrote: > > > Subject: [PATCH] kconfig: Document the new "visible if" syntax > > Hi, > > Can we get this kconfig-language.txt patch added to the kernel source tree, please? Thanks for the reminder, I pushed it to kbuild-2.6.git#kconfig now. Michal > > > > > Signed-off-by: Michal Marek <mmarek@suse.cz> > > > > > > diff --git a/Documentation/kbuild/kconfig-language.txt b/Documentation/kbuild/kconfig-language.txt > > > index 2fe93ca..2522cca 100644 > > > --- a/Documentation/kbuild/kconfig-language.txt > > > +++ b/Documentation/kbuild/kconfig-language.txt > > > @@ -114,6 +114,13 @@ applicable everywhere (see syntax). > > > the illegal configurations all over. > > > kconfig should one day warn about such things. > > > > > > +- limiting menu display: "visible if" <expr> > > > + This attribute is only applicable to menu blocks, if the condition is > > > + false, the menu block is not displayed to the user (the symbols > > > + contained there can still be selected by other symbols, though). It is > > > + similar to a conditional "prompt" attribude for individual menu > > > + entries. > > > + > > > > Default value of "visible" is true ?? > > > > > - numerical ranges: "range" <symbol> <symbol> ["if" <expr>] > > > This allows to limit the range of possible input values for int > > > and hex symbols. The user can only input a value which is larger than > > > @@ -300,7 +307,8 @@ menu: > > > "endmenu" > > > > > > This defines a menu block, see "Menu structure" above for more > > > -information. The only possible options are dependencies. > > > +information. The only possible options are dependencies and "visible" > > > +attributes. > > > > > > if: > > > > > > -- -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/Documentation/kbuild/kconfig-language.txt b/Documentation/kbuild/kconfig-language.txt index 2fe93ca..2522cca 100644 --- a/Documentation/kbuild/kconfig-language.txt +++ b/Documentation/kbuild/kconfig-language.txt @@ -114,6 +114,13 @@ applicable everywhere (see syntax). the illegal configurations all over. kconfig should one day warn about such things. +- limiting menu display: "visible if" <expr> + This attribute is only applicable to menu blocks, if the condition is + false, the menu block is not displayed to the user (the symbols + contained there can still be selected by other symbols, though). It is + similar to a conditional "prompt" attribude for individual menu + entries. + - numerical ranges: "range" <symbol> <symbol> ["if" <expr>] This allows to limit the range of possible input values for int and hex symbols. The user can only input a value which is larger than @@ -300,7 +307,8 @@ menu: "endmenu" This defines a menu block, see "Menu structure" above for more -information. The only possible options are dependencies. +information. The only possible options are dependencies and "visible" +attributes. if: