kconfig: implement KCONFIG_PROBABILITY for rand{,package}config
authorPeter Korsgaard <jacmet@sunsite.dk>
Fri, 23 Jul 2010 12:15:18 +0000 (14:15 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Fri, 23 Jul 2010 12:27:30 +0000 (14:27 +0200)
commit3435c1afb58307240be8e4607b5bb7d239fac4e9
treee1ba65ccf220652f3827f9239d2644a7f26d4737
parentf4800b4654ae529d23b3c9697123c94ffce313d0
kconfig: implement KCONFIG_PROBABILITY for rand{,package}config

rand{,package}config enables configuration options with 50% probability,
which isn't always what we want in BR (because the "big" configs take a
long time to build and limits the chance of a randconfig detecting a
missing dependency), so introduce a KCONFIG_PROBABILITY environment
variable to tweak the probability between 0 (all options off) and 100
(all options on).

To use, simply set the environment variable before running make or pass
it on the make command line - E.G.

make randpackageconfig KCONFIG_PROBABILITY=10

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/config/confdata.c