diff options
Diffstat (limited to 'Documentation')
| -rw-r--r-- | Documentation/kbuild/kconfig-language.txt | 32 | ||||
| -rw-r--r-- | Documentation/kbuild/kconfig.txt | 5 |
2 files changed, 31 insertions, 6 deletions
diff --git a/Documentation/kbuild/kconfig-language.txt b/Documentation/kbuild/kconfig-language.txt index b507d61fd41c..44e2649fbb29 100644 --- a/Documentation/kbuild/kconfig-language.txt +++ b/Documentation/kbuild/kconfig-language.txt | |||
| @@ -113,6 +113,13 @@ applicable everywhere (see syntax). | |||
| 113 | That will limit the usefulness but on the other hand avoid | 113 | That will limit the usefulness but on the other hand avoid |
| 114 | the illegal configurations all over. | 114 | the illegal configurations all over. |
| 115 | 115 | ||
| 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 | |||
| 116 | - numerical ranges: "range" <symbol> <symbol> ["if" <expr>] | 123 | - numerical ranges: "range" <symbol> <symbol> ["if" <expr>] |
| 117 | This allows to limit the range of possible input values for int | 124 | This allows to limit the range of possible input values for int |
| 118 | and hex symbols. The user can only input a value which is larger than | 125 | and hex symbols. The user can only input a value which is larger than |
| @@ -303,7 +310,8 @@ menu: | |||
| 303 | "endmenu" | 310 | "endmenu" |
| 304 | 311 | ||
| 305 | This defines a menu block, see "Menu structure" above for more | 312 | 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. | ||
| 307 | 315 | ||
| 308 | if: | 316 | if: |
| 309 | 317 | ||
| @@ -381,3 +389,25 @@ config FOO | |||
| 381 | 389 | ||
| 382 | limits FOO to module (=m) or disabled (=n). | 390 | limits FOO to module (=m) or disabled (=n). |
| 383 | 391 | ||
| 392 | Kconfig symbol existence | ||
| 393 | ~~~~~~~~~~~~~~~~~~~~~~~~ | ||
| 394 | The following two methods produce the same kconfig symbol dependencies | ||
| 395 | but differ greatly in kconfig symbol existence (production) in the | ||
| 396 | generated config file. | ||
| 397 | |||
| 398 | case 1: | ||
| 399 | |||
| 400 | config FOO | ||
| 401 | tristate "about foo" | ||
| 402 | depends on BAR | ||
| 403 | |||
| 404 | vs. case 2: | ||
| 405 | |||
| 406 | if BAR | ||
| 407 | config FOO | ||
| 408 | tristate "about foo" | ||
| 409 | endif | ||
| 410 | |||
| 411 | In case 1, the symbol FOO will always exist in the config file (given | ||
| 412 | no other dependencies). In case 2, the symbol FOO will only exist in | ||
| 413 | the config file if BAR is enabled. | ||
diff --git a/Documentation/kbuild/kconfig.txt b/Documentation/kbuild/kconfig.txt index cca46b1a0f6c..c313d71324b4 100644 --- a/Documentation/kbuild/kconfig.txt +++ b/Documentation/kbuild/kconfig.txt | |||
| @@ -48,11 +48,6 @@ KCONFIG_OVERWRITECONFIG | |||
| 48 | If you set KCONFIG_OVERWRITECONFIG in the environment, Kconfig will not | 48 | If you set KCONFIG_OVERWRITECONFIG in the environment, Kconfig will not |
| 49 | break symlinks when .config is a symlink to somewhere else. | 49 | break symlinks when .config is a symlink to somewhere else. |
| 50 | 50 | ||
| 51 | KCONFIG_NOTIMESTAMP | ||
| 52 | -------------------------------------------------- | ||
| 53 | If this environment variable exists and is non-null, the timestamp line | ||
| 54 | in generated .config files is omitted. | ||
| 55 | |||
| 56 | ______________________________________________________________________ | 51 | ______________________________________________________________________ |
| 57 | Environment variables for '{allyes/allmod/allno/rand}config' | 52 | Environment variables for '{allyes/allmod/allno/rand}config' |
| 58 | 53 | ||
