提交 224a2571 编写于 作者: B Bill Pemberton 提交者: Steven Rostedt

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: NBill Pemberton <wfp5p@virginia.edu>
Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
上级 0d7614f0
......@@ -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'};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册