summaryrefslogtreecommitdiff
path: root/v4l/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'v4l/scripts')
-rwxr-xr-xv4l/scripts/make_kconfig.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/v4l/scripts/make_kconfig.pl b/v4l/scripts/make_kconfig.pl
index c1a60e5a9..10d1eabb1 100755
--- a/v4l/scripts/make_kconfig.pl
+++ b/v4l/scripts/make_kconfig.pl
@@ -316,6 +316,8 @@ sub open_kconfig($$) {
} elsif (m|^\s*menu\s+"[^"]*"\s*$|) {
$key = 'menu';
}
+ # Remaining Kconfig directives only makse sense inside Kconfig blocks
+ next unless(defined $key);
# Don't process any directives in comment blocks (or menus)
next if ($key eq 'comment' || $key eq 'menu');