lkml.org 
[lkml]   [2009]   [Mar]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectkconfig - fix randconfig
kconfig failed to generate random values for choice values in
a choice block thus limiting the effect of builds based on randconfig
generated configs.

To test this I used this small config:

config MOD
def_bool n
option modules

choice CHOICE
prompt "ABCD Choice"
default A

config A
tristate "A"

config B
tristate "B"

config C
tristate "C"

config D
tristate "D"

endchoice

With the fix applied we now distribute the values more or
less even among the choice symbols.
And if MOD is enabled then we have several entries enabled.

Furhtermore calling randconfig several times in row made it
generate the same config as it used a second based seed.

Two patches follows - they are also at kfixes.git

Sam


\
 
 \ /
  Last update: 2009-03-15 11:25    [from the cache]
©2003-2011 Jasper Spaans