Skip to content

Commit

Permalink
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…
Browse files Browse the repository at this point in the history
…/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
  • Loading branch information
Linus Torvalds committed May 30, 2010
2 parents 17d30ac + 1743192 commit 092405c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/kconfig/streamline_config.pl
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,9 @@ sub find_config {
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;
Expand Down Expand Up @@ -215,7 +217,6 @@ sub read_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>) {
Expand All @@ -242,7 +243,7 @@ sub read_kconfig {
foreach my $obj (split /\s+/,$objs) {
$obj =~ s/-/_/g;
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.
my @arr;

Expand Down Expand Up @@ -307,7 +308,7 @@ sub read_kconfig {
my %configs;
foreach my $module (keys(%modules)) {
if (defined($objects{$module})) {
@arr = @{$objects{$module}};
my @arr = @{$objects{$module}};
foreach my $conf (@arr) {
$configs{$conf} = $module;
}
Expand Down

0 comments on commit 092405c

Please sign in to comment.