summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorMartin Roth <martinroth@google.com>2016-01-25 16:45:14 -0700
committerMartin Roth <martinroth@google.com>2016-01-30 17:29:04 +0100
commitab2d777360e8105007eef2911db26fd23c1ead14 (patch)
tree4ff0748595a396e7852819154311ba2cb799a619 /util
parentb58d349ca92b19869aaf9add81e83d37cad83a7a (diff)
downloadcoreboot-ab2d777360e8105007eef2911db26fd23c1ead14.tar.xz
kconfig_lint: Skip temp files when looking for unused Kconfig files.
Don't warn on Kconfig.orig and Kconfig~ files when trying to verify that all the Kconfig files in the coreboot source tree are being loaded. Change-Id: Ie7babe60b29735e5ccc5f93f4e42ad82dfb47044 Signed-off-by: Martin Roth <martinroth@google.com> Reviewed-on: https://review.coreboot.org/13462 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'util')
-rwxr-xr-xutil/lint/kconfig_lint6
1 files changed, 5 insertions, 1 deletions
diff --git a/util/lint/kconfig_lint b/util/lint/kconfig_lint
index 2fbaf97f5c..bec86e4be8 100755
--- a/util/lint/kconfig_lint
+++ b/util/lint/kconfig_lint
@@ -1168,7 +1168,11 @@ sub print_wholeconfig {
#-------------------------------------------------------------------------------
sub check_if_file_referenced {
my $filename = $File::Find::name;
- if ( ( $filename =~ /Kconfig/ ) && ( !exists $loaded_files{$filename} ) ) {
+ if ( ( $filename =~ /Kconfig/ )
+ && ( !$filename =~ /\.orig$/ )
+ && ( !$filename =~ /~$/ )
+ && ( !exists $loaded_files{$filename} ) )
+ {
show_warning("'$filename' is never referenced");
}
}