path: root/scripts
diff options
authorToralf Förster <>2010-05-26 20:22:02 +0200
committerSteven Rostedt <>2010-05-28 10:34:41 -0400
commit17431928194b36a0f88082df875e2e036da7fddf (patch)
tree4208c361adc0448de230a5b34d12cd89c3829891 /scripts
parent1d1d1feafd5d42e9e1312d42973e661582e51704 (diff)
kconfig: Hide error output in find command in
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 <> LKML-Reference: <> Signed-off-by: Steven Rostedt <>
Diffstat (limited to 'scripts')
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/kconfig/ b/scripts/kconfig/
index 2f8bde809711..c70a27d924f0 100644
--- a/scripts/kconfig/
+++ b/scripts/kconfig/
@@ -115,7 +115,9 @@ my $ksource = $ARGV[0];
my $kconfig = $ARGV[1];
my $lsmod_file = $ARGV[2];
-my @makefiles = `find $ksource -name Makefile`;
+my @makefiles = `find $ksource -name Makefile 2>/dev/null`;
+chomp @makefiles;
my %depends;
my %selects;
my %prompts;
@@ -215,7 +217,6 @@ if ($kconfig) {
# Read all Makefiles to map the configs to the objects
foreach my $makefile (@makefiles) {
- chomp $makefile;
open(MIN,$makefile) || die "Can't open $makefile";
while (<MIN>) {