summaryrefslogtreecommitdiffstats
path: root/Documentation/kbuild
diff options
context:
space:
mode:
authorMatthew Wilcox <matthew@wil.cx>2008-04-19 14:45:11 -0600
committerSam Ravnborg <sam@uranus.ravnborg.org>2008-04-28 22:59:31 +0200
commitdfecbec8b54038ef02835d2f8181e1f44bd080d2 (patch)
treee11e4af68547133fc2bf9d77f905c700154c1396 /Documentation/kbuild
parentbeda8ae7160bd7b521d9db274a27d8964dfba8ab (diff)
downloadlinux-dfecbec8b54038ef02835d2f8181e1f44bd080d2.tar.gz
linux-dfecbec8b54038ef02835d2f8181e1f44bd080d2.tar.bz2
linux-dfecbec8b54038ef02835d2f8181e1f44bd080d2.zip
kconifg: 'select' considered less evil
While select should be used with care, it is not actually evil. Signed-off-by: Matthew Wilcox <willy@linux.intel.com> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'Documentation/kbuild')
-rw-r--r--Documentation/kbuild/kconfig-language.txt17
1 files changed, 9 insertions, 8 deletions
diff --git a/Documentation/kbuild/kconfig-language.txt b/Documentation/kbuild/kconfig-language.txt
index 649cb8799890..00b950d1c193 100644
--- a/Documentation/kbuild/kconfig-language.txt
+++ b/Documentation/kbuild/kconfig-language.txt
@@ -104,14 +104,15 @@ applicable everywhere (see syntax).
Reverse dependencies can only be used with boolean or tristate
symbols.
Note:
- select is evil.... select will by brute force set a symbol
- equal to 'y' without visiting the dependencies. So abusing
- select you are able to select a symbol FOO even if FOO depends
- on BAR that is not set. In general use select only for
- non-visible symbols (no prompts anywhere) and for symbols with
- no dependencies. That will limit the usefulness but on the
- other hand avoid the illegal configurations all over. kconfig
- should one day warn about such things.
+ select should be used with care. select will force
+ a symbol to a value without visiting the dependencies.
+ By abusing select you are able to select a symbol FOO even
+ if FOO depends on BAR that is not set.
+ In general use select only for non-visible symbols
+ (no prompts anywhere) and for symbols with no dependencies.
+ That will limit the usefulness but on the other hand avoid
+ the illegal configurations all over.
+ kconfig should one day warn about such things.
- numerical ranges: "range" <symbol> <symbol> ["if" <expr>]
This allows to limit the range of possible input values for int