Adjust grep pattern for finding Kconfig symbols
This script detects unknown Kconfig symbols by checking whether the Kconfig macros used in the various *.config files have a corresponding Kconfig symbol in the tree. Its core test is done with grep(). It turns out that match pattern used in grep() is too broad. For instance, it doesn't report CONFIG_ACPI_PROCFS as unknown because there is a Kconfig entry for ACPI_PROCFS_POWER in the tree. Make the pattern match Kconfig symbols exactly to correct this. Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
This commit is contained in:
parent
0979d54b30
commit
b8c626ce78
@ -74,7 +74,7 @@ sub main {
|
||||
my (@tmp) = parse_shipped( $shipped );
|
||||
foreach my $ref ( @tmp ) {
|
||||
say( STDERR "$shipped:$ref->[0]: No Kconfig symbol matches 'CONFIG_$ref->[1]'" )
|
||||
unless (grep( /$ref->[1]/, keys( %configs )));
|
||||
unless (grep( /^$ref->[1]$/, keys( %configs )));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user