Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 161315
b: refs/heads/master
c: cdfc479
h: refs/heads/master
i:
  161313: 63294ee
  161311: d7c704a
v: v3
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed Aug 19, 2009
1 parent 793f8ba commit 17d6ffb
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: de481560eb0bd9d940b90311eba85711e4b1150b
refs/heads/master: cdfc47950a531199a553cebab0ac481aa7062948
63 changes: 62 additions & 1 deletion trunk/scripts/kconfig/streamline_config.pl
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,68 @@
my $config = ".config";
my $linuxpath = ".";

open(CIN,$config) || die "Can't open current config file: $config";
my $uname = `uname -r`;
chomp $uname;

my @searchconfigs = (
{
"file" => "/proc/config.gz",
"exec" => "zcat",
},
{
"file" => "/boot/vmlinuz-$uname",
"exec" => "scripts/extract-ikconfig",
"test" => "scripts/extract-ikconfig",
},
{
"file" => "vmlinux",
"exec" => "scripts/extract-ikconfig",
"test" => "scripts/extract-ikconfig",
},
{
"file" => "/lib/modules/$uname/kernel/kernel/configs.ko",
"exec" => "scripts/extract-ikconfig",
"test" => "scripts/extract-ikconfig",
},
{
"file" => "kernel/configs.ko",
"exec" => "scripts/extract-ikconfig",
"test" => "scripts/extract-ikconfig",
},
{
"file" => "kernel/configs.o",
"exec" => "scripts/extract-ikconfig",
"test" => "scripts/extract-ikconfig",
},
{
"file" => ".config",
"exec" => "cat",
},
);

sub find_config {
foreach my $conf (@searchconfigs) {
my $file = $conf->{"file"};

next if ( ! -f "$file");

if (defined($conf->{"test"})) {
`$conf->{"test"} $conf->{"file"} 2>/dev/null`;
next if ($?);
}

my $exec = $conf->{"exec"};

print STDERR "using config: '$file'\n";

open(CIN, "$exec $file |") || die "Failed to run $exec $file";
return;
}
die "No config file found";
}

find_config;

my @makefiles = `find $linuxpath -name Makefile`;
my %depends;
my %selects;
Expand Down

0 comments on commit 17d6ffb

Please sign in to comment.