All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] removing unwanted module configs
@ 2009-04-30  3:08 Steven Rostedt
  2009-04-30  3:08 ` [PATCH 1/3] kconfig: add streamline_config.pl to scripts Steven Rostedt
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Steven Rostedt @ 2009-04-30  3:08 UTC (permalink / raw)
  To: linux-kernel
  Cc: Ingo Molnar, Andrew Morton, Linus Torvalds, Peter Zijlstra,
	Thomas Gleixner, Theodore Tso, Arnaldo Carvalho de Melo, zippel,
	linux-kbuild, Sam Ravnborg, Jonathan Corbet

As it has been brought up last Kernel Summit, we want to make it easier
for those that report bugs to build their own kernels, and maybe even
bisect with git.  Some of these people are not programmers and do not
understand the complexity of the configuration options. But to compile
a distribution configured kernel on their boxes can take hours.

This patch series comes to the rescue. I wrote the first instance of
streamline config when I bought a new box in 2005 and got frustrated
with finding all the necessary configurations to boot it. It is a
small (yet powerful) perl script.

Here's what it does:

 * Reads the modules that are load by using lsmod.
 * Reads all Makefiles to map modules to CONFIG_* options
 * Reads the Kconfig files to find dependencies and selects
 * Figures out what CONFIGS are needed to compile the loaded modules
 * Reads the .config and prints out a version with all module configurations
    that not needed, disabled.

The next two patches add options to make.

 localmodconfig - this will run streamline_config.pl on the .config file
	and replace it at the end.

 localyesconfig - this will do the same as localmodconfig but will also
	sed -i s/=m/=y/  to turn all modules to core. It will also run
	the 'make oldcondfig' to fix it up and let the user handle
	andything that was changed by converting a module to core.

Anyway, this is now in git and as a series of patches here. My git tree
is based off of the latest Linus git tree.

Have fun!

-- 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 (3):
      kconfig: add streamline_config.pl to scripts
      kconfig: make localmodconfig to run streamline_config.pl
      kconfig: add make localyesconfig option

----
 scripts/kconfig/Makefile             |   24 +++-
 scripts/kconfig/streamline_config.pl |  291 ++++++++++++++++++++++++++++++++++
 2 files changed, 314 insertions(+), 1 deletions(-)
-- 

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2009-04-30 14:44 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-30  3:08 [PATCH 0/3] removing unwanted module configs Steven Rostedt
2009-04-30  3:08 ` [PATCH 1/3] kconfig: add streamline_config.pl to scripts Steven Rostedt
2009-04-30  3:08 ` [PATCH 2/3] kconfig: make localmodconfig to run streamline_config.pl Steven Rostedt
2009-04-30  3:08 ` [PATCH 3/3] kconfig: add make localyesconfig option Steven Rostedt
2009-04-30  7:18 ` [PATCH 0/3] removing unwanted module configs Ingo Molnar
2009-04-30 13:17   ` Steven Rostedt
2009-04-30 13:26     ` Ingo Molnar
2009-04-30 13:42       ` Steven Rostedt
2009-04-30 13:47         ` Steven Rostedt
2009-04-30 14:43           ` Ingo Molnar
2009-04-30 14:42         ` Ingo Molnar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.