提交 296471ad 编写于 作者: B Benjamin Poirier 提交者: Steven Rostedt

localmodconfig: Fix parsing of Kconfig "source" statements

The parameter of Kconfig "source" statements does not need to be quoted.
The current regex causes many kconfig files to be skipped and hence,
dependencies to be missed.

Also fix the whitespace repeat count.

Link: http://lkml.kernel.org/r/1459619722-13695-1-git-send-email-bpoirier@suse.comTested-by: NLee, Chun-Yi <jlee@suse.com>
Signed-off-by: NBenjamin Poirier <bpoirier@suse.com>
Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
上级 02da2d72
...@@ -188,7 +188,7 @@ sub read_kconfig { ...@@ -188,7 +188,7 @@ sub read_kconfig {
$cont = 0; $cont = 0;
# collect any Kconfig sources # collect any Kconfig sources
if (/^source\s*"(.*)"/) { if (/^source\s+"?([^"]+)/) {
my $kconfig = $1; my $kconfig = $1;
# prevent reading twice. # prevent reading twice.
if (!defined($read_kconfigs{$kconfig})) { if (!defined($read_kconfigs{$kconfig})) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册