Commit 092405cd authored by Linus Torvalds's avatar Linus Torvalds

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
parents 17d30ac0 17431928
...@@ -115,7 +115,9 @@ my $ksource = $ARGV[0]; ...@@ -115,7 +115,9 @@ my $ksource = $ARGV[0];
my $kconfig = $ARGV[1]; my $kconfig = $ARGV[1];
my $lsmod_file = $ARGV[2]; 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 %depends;
my %selects; my %selects;
my %prompts; my %prompts;
...@@ -215,7 +217,6 @@ if ($kconfig) { ...@@ -215,7 +217,6 @@ if ($kconfig) {
# Read all Makefiles to map the configs to the objects # Read all Makefiles to map the configs to the objects
foreach my $makefile (@makefiles) { foreach my $makefile (@makefiles) {
chomp $makefile;
open(MIN,$makefile) || die "Can't open $makefile"; open(MIN,$makefile) || die "Can't open $makefile";
while (<MIN>) { while (<MIN>) {
...@@ -242,7 +243,7 @@ foreach my $makefile (@makefiles) { ...@@ -242,7 +243,7 @@ foreach my $makefile (@makefiles) {
foreach my $obj (split /\s+/,$objs) { foreach my $obj (split /\s+/,$objs) {
$obj =~ s/-/_/g; $obj =~ s/-/_/g;
if ($obj =~ /(.*)\.o$/) { if ($obj =~ /(.*)\.o$/) {
# Objects may bes enabled by more than one config. # Objects may be enabled by more than one config.
# Store configs in an array. # Store configs in an array.
my @arr; my @arr;
...@@ -307,7 +308,7 @@ close (LIN); ...@@ -307,7 +308,7 @@ close (LIN);
my %configs; my %configs;
foreach my $module (keys(%modules)) { foreach my $module (keys(%modules)) {
if (defined($objects{$module})) { if (defined($objects{$module})) {
@arr = @{$objects{$module}}; my @arr = @{$objects{$module}};
foreach my $conf (@arr) { foreach my $conf (@arr) {
$configs{$conf} = $module; $configs{$conf} = $module;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment