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>
This commit is contained in:
parent
b58d349ca9
commit
ab2d777360
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue