kconfig: search for a config to base the local(mod|yes)config on
authorSteven Rostedt <srostedt@redhat.com>
Thu, 30 Apr 2009 18:39:48 +0000 (14:39 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 19 Aug 2009 02:02:00 +0000 (22:02 -0400)
commitcdfc47950a531199a553cebab0ac481aa7062948
tree23a1dfc287c61144ef3a7fcf83980a8fa50831f6
parentde481560eb0bd9d940b90311eba85711e4b1150b
kconfig: search for a config to base the local(mod|yes)config on

Instead of using the .config in the local directory. This patch
changes streamline_config.pl to search various locations for a config.

Here's the list and order of search:

  /proc/config.gz
  /boot/vmlinuz-`uname -r`
  vmlinux  # local to the directory
  /lib/modules/`uname -r`/kernel/kernel/configs.ko
  kernel/configs.ko
  kernel/configs.o
  .config

Once it finds a file that contains a config (it checks if the binary
objects have configs first) it then uses it to create the .config
with minimum modules needed.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
scripts/kconfig/streamline_config.pl