From: Bill Pemberton Date: Thu, 9 Aug 2012 13:23:20 +0000 (-0400) Subject: localmodconfig: Set default value for ksource in streamline_config.pl X-Git-Tag: upstream/snapshot3+hdmi~6621^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=224a257190694f253f7a4c533fd6958d2e5fa669;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 Signed-off-by: Steven Rostedt --- diff --git a/scripts/kconfig/streamline_config.pl b/scripts/kconfig/streamline_config.pl index 2fbbbc1..e3687f9 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'};