diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-30 12:13:43 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-30 12:13:43 -0400 |
commit | 092405cdb66f060918160ae730640b449ed7b827 (patch) | |
tree | 42c440668586a0a7d7a5aaaaaf0e2b543e2bbc2a | |
parent | 17d30ac077df253c12c7ba4db8d5cdacfceeb6d1 (diff) | |
parent | 17431928194b36a0f88082df875e2e036da7fddf (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-kconfig
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-kconfig:
kconfig: Hide error output in find command in streamline_config.pl
kconfig: Fix typo in comment in streamline_config.pl
kconfig: Make a variable local in streamline_config.pl
-rw-r--r-- | scripts/kconfig/streamline_config.pl | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/kconfig/streamline_config.pl b/scripts/kconfig/streamline_config.pl index afbd54ac1d83..c70a27d924f0 100644 --- a/scripts/kconfig/streamline_config.pl +++ b/scripts/kconfig/streamline_config.pl | |||
@@ -115,7 +115,9 @@ my $ksource = $ARGV[0]; | |||
115 | my $kconfig = $ARGV[1]; | 115 | my $kconfig = $ARGV[1]; |
116 | my $lsmod_file = $ARGV[2]; | 116 | my $lsmod_file = $ARGV[2]; |
117 | 117 | ||
118 | my @makefiles = `find $ksource -name Makefile`; | 118 | my @makefiles = `find $ksource -name Makefile 2>/dev/null`; |
119 | chomp @makefiles; | ||
120 | |||
119 | my %depends; | 121 | my %depends; |
120 | my %selects; | 122 | my %selects; |
121 | my %prompts; | 123 | my %prompts; |
@@ -215,7 +217,6 @@ if ($kconfig) { | |||
215 | 217 | ||
216 | # Read all Makefiles to map the configs to the objects | 218 | # Read all Makefiles to map the configs to the objects |
217 | foreach my $makefile (@makefiles) { | 219 | foreach my $makefile (@makefiles) { |
218 | chomp $makefile; | ||
219 | 220 | ||
220 | open(MIN,$makefile) || die "Can't open $makefile"; | 221 | open(MIN,$makefile) || die "Can't open $makefile"; |
221 | while (<MIN>) { | 222 | while (<MIN>) { |
@@ -242,7 +243,7 @@ foreach my $makefile (@makefiles) { | |||
242 | foreach my $obj (split /\s+/,$objs) { | 243 | foreach my $obj (split /\s+/,$objs) { |
243 | $obj =~ s/-/_/g; | 244 | $obj =~ s/-/_/g; |
244 | if ($obj =~ /(.*)\.o$/) { | 245 | if ($obj =~ /(.*)\.o$/) { |
245 | # Objects may bes enabled by more than one config. | 246 | # Objects may be enabled by more than one config. |
246 | # Store configs in an array. | 247 | # Store configs in an array. |
247 | my @arr; | 248 | my @arr; |
248 | 249 | ||
@@ -307,7 +308,7 @@ close (LIN); | |||
307 | my %configs; | 308 | my %configs; |
308 | foreach my $module (keys(%modules)) { | 309 | foreach my $module (keys(%modules)) { |
309 | if (defined($objects{$module})) { | 310 | if (defined($objects{$module})) { |
310 | @arr = @{$objects{$module}}; | 311 | my @arr = @{$objects{$module}}; |
311 | foreach my $conf (@arr) { | 312 | foreach my $conf (@arr) { |
312 | $configs{$conf} = $module; | 313 | $configs{$conf} = $module; |
313 | } | 314 | } |