From fcc2950a6027ae008d14913a7a91363a49d651b0 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Sun, 16 Sep 2018 21:35:46 +0200 Subject: util/lint: Ignore "visible if" statement in Kconfig files They allow reducing the visible set of options to remove clutter. Change-Id: I18c953c7feae23c0752392a2bf8f49783c17310e Signed-off-by: Patrick Georgi Reviewed-on: https://review.coreboot.org/28635 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Martin Roth --- util/lint/kconfig_lint | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'util/lint') diff --git a/util/lint/kconfig_lint b/util/lint/kconfig_lint index fb8e60f8a5..62997dd2b8 100755 --- a/util/lint/kconfig_lint +++ b/util/lint/kconfig_lint @@ -682,6 +682,13 @@ sub build_and_parse_kconfig_tree { push( @inside_menu, $menu ); } + # visible if + elsif ( $line =~ /^\s*visible if.*$/ ) { + # Must come directly after menu line (and on a separate line) + # but kconfig already checks for that. + # Ignore it. + } + # endmenu elsif ( $line =~ /^\s*endmenu/ ) { $inside_config = ""; -- cgit v1.2.3