Skip to content

kconfig: streamline distro configs for testers

Steven Rostedt linux-kbuild linux-next lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 patches 25 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14kconfig: add streamline_config.pl to scriptsscripts/kconfig/streamline_config.pl+291 -00 replies
2/14kconfig: make localmodconfig to run streamline_config.plscripts/kconfig/Makefile+12 -10 replies
3/14kconfig: add make localyesconfig optionscripts/kconfig/Makefile+12 -10 replies
4/14kconfig: streamline_config.pl do not stop with no dependsscripts/kconfig/streamline_config.pl+3 -50 replies
5/14kconfig: do not warn about modules built inscripts/kconfig/streamline_config.pl+5 -30 replies
6/14kconfig: enable CONFIG_IKCONFIG from streamline_config.plscripts/kconfig/streamline_config.pl+23 -100 replies
7/14kconfig: add check if end exists in extract-ikconfigscripts/extract-ikconfig+4 -00 replies
8/14kconfig: have extract-ikconfig read ELF filesscripts/extract-ikconfig+10 -00 replies
9/14kconfig: keep config.gz around even if CONFIG_IKCONFIG_PROC is not setkernel/Makefile+1 -10 replies
10/14kconfig: search for a config to base the local(mod|yes)config onscripts/kconfig/streamline_config.pl+62 -10 replies
11/14kconfig: unset IKCONFIG_PROC and clean up nestingscripts/kconfig/streamline_config.pl+3 -60 replies
12/14kconfig: test for /boot/config-uname after /proc/config.gz in localconfigscripts/kconfig/streamline_config.pl+4 -00 replies
13/14kconfig: make local .config default for streamline_configscripts/kconfig/streamline_config.pl+4 -40 replies
14/14kconfig: test if a .config already existsscripts/kconfig/Makefile+20 -100 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/14] kconfig: streamline distro configs for testers

Here's my rebase of the prior push of streamline-config.pl.

What this patch series does, is add my streamline-config.pl as a make option for users. What streamline-config.pl does is to look at the modules loaded in the system (lsmod) and then scans all the Makefiles and Kconfigs in the current directory tree to find what configs need to be set for the modules that are loaded.

It then looks at the .config (if .config is not found, it looks in /boot, /proc/config.gz, vmlinux, configs.ko for .configs that it may be able to use). This script will remove all options set as =m that does not need to be set in order to build the modules found by lsmod.

NOTE: This does not touch any =y option. If you do make allyesconfig and then run this, it will have not effect anything. Nor does this enable any thing that is not set. Although we may change this in the future.

This patch series provides:

make localmodconfig

which will look for a .config to streamline. Then it will run silentoldconfig to clean up any missing options.

make localyesconfig

will remove all =m that is not needed to build the modules provided by lsmod, and then convert the rest to =y. Note, once you do this, no more changes will be made by these scripts.

This is idea to help testers. Since a lot of people download a kernel from kernel.org and then uses the distro config to configure it. This can take hours to build. Now all a tester needs to do, is to download the kernel from kernel.org and run "make localmodconfig". This will disable most of the modules that are set in distro kernels and speed up the build time by magnitudes!

Lets try to get this in soon,

-- Steve

The following patches are in:

git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace.git

branch: kconfig

Steven Rostedt (14):
kconfig: add streamline_config.pl to scripts
kconfig: make localmodconfig to run streamline_config.pl
kconfig: add make localyesconfig option
kconfig: streamline_config.pl do not stop with no depends
kconfig: do not warn about modules built in
kconfig: enable CONFIG_IKCONFIG from streamline_config.pl
kconfig: add check if end exists in extract-ikconfig
kconfig: have extract-ikconfig read ELF files
kconfig: keep config.gz around even if CONFIG_IKCONFIG_PROC is not set
kconfig: search for a config to base the local(mod|yes)config on
kconfig: unset IKCONFIG_PROC and clean up nesting
kconfig: test for /boot/config-uname after /proc/config.gz in localconfig
kconfig: make local .config default for streamline_config
kconfig: test if a .config already exists

----

 kernel/Makefile                      |    2 +-
 scripts/extract-ikconfig             |   14 ++
 scripts/kconfig/Makefile             |   34 +++-
 scripts/kconfig/streamline_config.pl |  366 ++++++++++++++++++++++++++++++++++
 4 files changed, 414 insertions(+), 2 deletions(-)