From: Yann E. MORIN Date: Sat, 13 Apr 2013 15:18:36 +0000 (+0200) Subject: kconfig: implement KCONFIG_PROBABILITY for randconfig X-Git-Tag: 1.9.9~32 X-Git-Url: https://jxself.org/git/?p=carl9170fw.git;a=commitdiff_plain;h=d10adbe436a635d0f41817242ba6f234368f1044;hp=d10adbe436a635d0f41817242ba6f234368f1044 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 [yann.morin.1998@free.fr: add to Documentation/] Signed-off-by: "Yann E. MORIN" Signed-off-by: Christian Lamparter ---