kbuild: Add new test targets: allyes, allno, randconfig
PATCH 1/1 kbuild: Add new test targets: allyes, allno, randconfig
Adds targets useful when doing test-compilation of a kernel.
allyes is useful to see how much of the 2.5 kernel that does not yet compile. randconfig can be used in a random manner to test strange configuration, for example over a night. The usage is documented in Documentation/kbuild/random.txt
Credits for this patch goes to Gohzlane Toumi and Keith Owens. I simply extracted it from kbuild-2.5.
Sam
random.txt renamed from random.txt.orig +47 -0
@@ -0,0 +1,47 @@ +Code by Ghozlane Toumi <[email protected]>, documentation by +Keith Owens <[email protected]> + +In addition to the normal config targets you can make + + randconfig random configuration. + + allyes reply 'y' to all options, maximal kernel. + + allno reply 'n' to all options, minimal kernel. + + allmod build everything as modules where possible. + + +All random configurations will satisfy the config rules, that is, all +configurations should be valid. Any build errors indicate bugs in the +config dependency rules or in the Makefiles. + +You can constrain the random configuration, e.g. you may want to force +the use of modules or the absence of /proc or cramfs must be a module. +If file .force_default exists then it is read to preset selected +values, all other values will be randomly selected, subject to the +config rules. The syntax of .force_default is: + +CONFIG_foo=value + Force this value, for example CONFIG_MODULES=y, CONFIG_PROC_FS=n, + CONFIG_RAMFS=m. + +# CONFIG_foo is not set + Equivalent to CONFIG_foo=n, supported because this is the format used + in .config. NOTE: The leading '#' is required. + +# list CONFIG_foo val1,val2,val3 + Pick a value for CONFIG_foo from the list. CONFIG_foo must be an int + or hex option. NOTE: The leading '#' is required. + +# range CONFIG_foo min max + Pick a value for CONFIG_foo in the range min <=> max. CONFIG_foo + must be an int option. NOTE: The leading '#' is required. + +If you have repeated settings of the same option in .force_default then +values take precedence over lists which take precedence over range. +Within each group the last setting for an option is used. + +Answers "randomised" are bool(), tristate(), dep_tristate() and +choice(). Unless specified in .force_default, int, hex, and string +options use the default values from config.in.
Configure renamed from Configure.orig +136 -22
231 lines not on this page · raw message
Makefile renamed from Makefile.orig +12 -0
@@ -206,6 +206,18 @@ config: symlinks $(CONFIG_SHELL) scripts/Configure arch/$(ARCH)/config.in +randconfig: symlinks + $(CONFIG_SHELL) scripts/Configure -r arch/$(ARCH)/config.in + +allyes: symlinks + $(CONFIG_SHELL) scripts/Configure -y arch/$(ARCH)/config.in + +allno: symlinks + $(CONFIG_SHELL) scripts/Configure -n arch/$(ARCH)/config.in + +allmod: symlinks + $(CONFIG_SHELL) scripts/Configure -m arch/$(ARCH)/config.in + # make asm->asm-$(ARCH) symlink symlinks: