OSDN Git Service

localmodconfig: Read in orig config file to avoid extra processing
authorSteven Rostedt <srostedt@redhat.com>
Tue, 19 Jun 2012 01:43:53 +0000 (21:43 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 19 Jun 2012 19:03:05 +0000 (15:03 -0400)
commit4f4c51c9405a509e9073ff242746e9049c723aae
treee729ede1466683c8a6a4b316bf3e362179c2265d
parent0b58a99eb27aa522a3cd16ece09c8045b322b9ce
localmodconfig: Read in orig config file to avoid extra processing

Read in the entire config file. If there's a config that we depend on
that happens to be in the core set (not a module) then we do not need
to process it as a module.

Currently, we follow the entire depend and selects even if they
are enabled as core and not modules. By checking to make sure that we
only look at modules we can drop the count a little.

From one of my tests, localmodconfig went from taking 3095 set modules
down to 356 before this patch, and down to 290 modules after the change.

Tested-by: John David Yost <johnyost@ptd.net> # AlleyTrotter
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
scripts/kconfig/streamline_config.pl