localmodconfig: Fix parsing of Kconfig "source" statements
authorBenjamin Poirier <bpoirier@suse.com>
Sat, 2 Apr 2016 17:55:21 +0000 (10:55 -0700)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 26 Apr 2016 13:59:21 +0000 (09:59 -0400)
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.com
Tested-by: Lee, Chun-Yi <jlee@suse.com>
Signed-off-by: Benjamin Poirier <bpoirier@suse.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
scripts/kconfig/streamline_config.pl

index f3d3fb42b8735e76aa54bd4c433574f7afc43b0e..7036ae306db6d9bc54b20509db9e7497f44e3f62 100755 (executable)
@@ -188,7 +188,7 @@ sub read_kconfig {
        $cont = 0;
 
        # collect any Kconfig sources
-       if (/^source\s*"(.*)"/) {
+       if (/^source\s+"?([^"]+)/) {
            my $kconfig = $1;
            # prevent reading twice.
            if (!defined($read_kconfigs{$kconfig})) {