On Sun, 29 Apr 2001, Keith Owens wrote:
> I dimly remember that somebody had a script to generate random
> configurations for kbuild. Is there a reasonably current version
> available, for any 2.4 kernel? I want to stress test my 2.5 rules.
hi, sory for the delay ,
I made something like that some time ago, the patches apply with offsets ,
but it's otherwise ok .
i'ts based on make oldconfig , but rather than asking you the questions,
it answers by itself automagically .
so it adds the following options :
make randconfig
answers randomly to the questions (see bellow) .
make allyes
answers 'yes' to all questions .
make allno
answers 'no' to all questions .
make allmod
answer 'm' if avaiable, 'yes' else .
you can specify defaults in .force_default file, it uses the same syntax
as the .config file, with some additions :
----8<----
#.force_default sample
#
# force CONFIG_MODULES to yes
CONFIG_MODULES=y
# we don't want SGI workstation support as it diables a lot of options
# you can specify CONFIG_VISWS=n , or in .config's fashion :
# CONFIG_VISWS is not set
# you can specify a list of values for int and hex config options
# the # is required :
# list CONFIG_NAME val1,val2,val3
# for int options, you can use ranges in the form :
# the # is required :
# range CONFIG_OPTION min max
----8<----
A direct specification of the values in .force_default has priority over a
list, and a "list" has higher priority over a "range".
Answers "randomised" are bool(), tristate(), dep_tristate() and choice().
"list" can be used for int() and hex()
"range" only for int()
unless specified in the .force_config int, hex, and strings use the
default values
reminder : this is a dirty hack over make oldconfig . it's slow, ugly, but
"worked for me when i needed it" (c) , so YMMV .
ghoz
Makefile-2.4.0-test9.20001010.patch.gz
Configure-2.4.0-test9.20001010.patch.gz