diff options
author | Toralf Förster <toralf.foerster@gmx.de> | 2010-05-26 14:22:02 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2010-05-28 10:34:41 -0400 |
commit | 17431928194b36a0f88082df875e2e036da7fddf (patch) | |
tree | 4208c361adc0448de230a5b34d12cd89c3829891 | |
parent | 1d1d1feafd5d42e9e1312d42973e661582e51704 (diff) |
kconfig: Hide error output in find command in streamline_config.pl
Finding the list of Makefiles in streamline-config should not report errors.
Also move the "chomp" to the @makefiles array instead of doing it in the
for loop. This is more efficient, and does not make it any less readable
by C programmers.
Signed-off-by: Toralf Foerster <toralf.foerster@gmx.de>
LKML-Reference: <201005262022.02928.toralf.foerster@gmx.de>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r-- | scripts/kconfig/streamline_config.pl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/kconfig/streamline_config.pl b/scripts/kconfig/streamline_config.pl index 2f8bde809711..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>) { |