summaryrefslogtreecommitdiffstats
path: root/scripts/kconfig
diff options
context:
space:
mode:
authorBill Pemberton <wfp5p@virginia.edu>2012-08-09 09:23:20 -0400
committerSteven Rostedt <rostedt@goodmis.org>2012-08-16 16:08:37 -0400
commit224a257190694f253f7a4c533fd6958d2e5fa669 (patch)
treeda6eca0561cb485370ee5464917cb5418919bbaf /scripts/kconfig
parent0d7614f09c1ebdbaa1599a5aba7593f147bf96ee (diff)
downloadlinux-224a257190694f253f7a4c533fd6958d2e5fa669.tar.gz
linux-224a257190694f253f7a4c533fd6958d2e5fa669.tar.bz2
linux-224a257190694f253f7a4c533fd6958d2e5fa669.zip
localmodconfig: Set default value for ksource in streamline_config.pl
Running streamline_config.pl as it's shown it in the comment header, you will get a warning about $ksource being uninitialized. This is because $ksource is set to ARGV[0], but the examples don't require any arguments. Fix by setting ksource to . if no ARGV[0] is given. Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'scripts/kconfig')
-rw-r--r--scripts/kconfig/streamline_config.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kconfig/streamline_config.pl b/scripts/kconfig/streamline_config.pl
index 2fbbbc1ddea0..e3687f98e0c8 100644
--- a/scripts/kconfig/streamline_config.pl
+++ b/scripts/kconfig/streamline_config.pl
@@ -135,7 +135,7 @@ GetOptions("localmodconfig" => \$localmodconfig,
"localyesconfig" => \$localyesconfig);
# Get the build source and top level Kconfig file (passed in)
-my $ksource = $ARGV[0];
+my $ksource = ($ARGV[0] ? $ARGV[0] : '.');
my $kconfig = $ARGV[1];
my $lsmod_file = $ENV{'LSMOD'};