aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/kbuild/kconfig.txt
diff options
context:
space:
mode:
authorYann E. MORIN <yann.morin.1998@free.fr>2013-04-13 11:18:36 -0400
committerYann E. MORIN <yann.morin.1998@free.fr>2013-04-24 18:16:30 -0400
commite43956e607692f9b1c710311e4a6591ffba1edf0 (patch)
treec42d170aa789a5ff0758a32b328e82ccbaa22142 /Documentation/kbuild/kconfig.txt
parent0d8024c6ebadb68f1154377c2e1996b4e649e4c8 (diff)
kconfig: implement KCONFIG_PROBABILITY for randconfig
Currently the odds to set each symbol is (rounded): booleans: y: 50% n: 50% tristates: y: 33% m: 33% n: 33% Introduce a KCONFIG_PROBABILITY environment variable to tweak the probabilities (in percentage), as such: KCONFIG_PROBABILITY y:n split y:m:n split ----------------------------------------------------------------- [1] unset or empty 50 : 50 33 : 33 : 34 [2] N N : 100-N N/2 : N/2 : 100-N N:M N+M : 100-(N+M) N : M : 100-(N+M) N:M:L N : 100-N M : L : 100-(M+L) [1] The current behaviour is kept as default, for backward compatibility [2] The solution initially implemented by Peter for Buildroot, see: http://git.buildroot.org/buildroot/commit/?id=3435c1afb5 Signed-off-by: Peter Korsgaard <jacmet@uclibc.org> [yann.morin.1998@free.fr: add to Documentation/] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Diffstat (limited to 'Documentation/kbuild/kconfig.txt')
-rw-r--r--Documentation/kbuild/kconfig.txt27
1 files changed, 27 insertions, 0 deletions
diff --git a/Documentation/kbuild/kconfig.txt b/Documentation/kbuild/kconfig.txt
index dbf746b70553..3f429ed8b3b8 100644
--- a/Documentation/kbuild/kconfig.txt
+++ b/Documentation/kbuild/kconfig.txt
@@ -98,6 +98,33 @@ You can set this to the integer value used to seed the RNG, if you want
98to somehow debug the behaviour of the kconfig parser/frontends. 98to somehow debug the behaviour of the kconfig parser/frontends.
99If not set, the current time will be used. 99If not set, the current time will be used.
100 100
101KCONFIG_PROBABILITY
102--------------------------------------------------
103This variable can be used to skew the probabilities. This variable can
104be unset or empty, or set to three different formats:
105 KCONFIG_PROBABILITY y:n split y:m:n split
106 -----------------------------------------------------------------
107 unset or empty 50 : 50 33 : 33 : 34
108 N N : 100-N N/2 : N/2 : 100-N
109 [1] N:M N+M : 100-(N+M) N : M : 100-(N+M)
110 [2] N:M:L N : 100-N M : L : 100-(M+L)
111
112where N, M and L are integers (in base 10) in the range [0,100], and so
113that:
114 [1] N+M is in the range [0,100]
115 [2] M+L is in the range [0,100]
116
117Examples:
118 KCONFIG_PROBABILITY=10
119 10% of booleans will be set to 'y', 90% to 'n'
120 5% of tristates will be set to 'y', 5% to 'm', 90% to 'n'
121 KCONFIG_PROBABILITY=15:25
122 40% of booleans will be set to 'y', 60% to 'n'
123 15% of tristates will be set to 'y', 25% to 'm', 60% to 'n'
124 KCONFIG_PROBABILITY=10:15:15
125 10% of booleans will be set to 'y', 90% to 'n'
126 15% of tristates will be set to 'y', 15% to 'm', 70% to 'n'
127
101______________________________________________________________________ 128______________________________________________________________________
102Environment variables for 'silentoldconfig' 129Environment variables for 'silentoldconfig'
103 130