summaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/streamline_config.pl
diff options
context:
space:
mode:
authorArnaud Lacombe <lacombar@gmail.com>2011-07-01 17:45:31 -0400
committerArnaud Lacombe <lacombar@gmail.com>2011-08-08 01:44:25 -0400
commitf597a718296eef9622ebc1d13f4f8324fa169cef (patch)
tree56dc878a5fb3661f7d2db7e1965bdb27f8af497e /scripts/kconfig/streamline_config.pl
parent322a8b034003c0d46d39af85bf24fee27b902f48 (diff)
downloadlinux-f597a718296eef9622ebc1d13f4f8324fa169cef.tar.gz
linux-f597a718296eef9622ebc1d13f4f8324fa169cef.tar.bz2
linux-f597a718296eef9622ebc1d13f4f8324fa169cef.zip
kconfig/streamline_config.pl: directly access LSMOD from the environment
Cc: Steven Rostedt <rostedt@goodmis.org> Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
Diffstat (limited to 'scripts/kconfig/streamline_config.pl')
-rw-r--r--scripts/kconfig/streamline_config.pl8
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/kconfig/streamline_config.pl b/scripts/kconfig/streamline_config.pl
index a4fe923c0131..ae34d2007f57 100644
--- a/scripts/kconfig/streamline_config.pl
+++ b/scripts/kconfig/streamline_config.pl
@@ -115,7 +115,7 @@ find_config;
# Get the build source and top level Kconfig file (passed in)
my $ksource = $ARGV[0];
my $kconfig = $ARGV[1];
-my $lsmod_file = $ARGV[2];
+my $lsmod_file = $ENV{'LSMOD'};
my @makefiles = `find $ksource -name Makefile 2>/dev/null`;
chomp @makefiles;
@@ -296,7 +296,11 @@ my %modules;
if (defined($lsmod_file)) {
if ( ! -f $lsmod_file) {
- die "$lsmod_file not found";
+ if ( -f $ENV{'objtree'}."/".$lsmod_file) {
+ $lsmod_file = $ENV{'objtree'}."/".$lsmod_file;
+ } else {
+ die "$lsmod_file not found";
+ }
}
if ( -x $lsmod_file) {
# the file is executable, run it