diff --git a/scripts/metadata.pl b/scripts/metadata.pl index ade86c867c8..17040d9e365 100755 --- a/scripts/metadata.pl +++ b/scripts/metadata.pl @@ -757,7 +757,7 @@ sub gen_package_mk() { $idx = $subdir{$dep}.$dep; } $idx .= $suffix; - undef $idx if $idx =~ /^(kernel)|(base-files)$/; + undef $idx if $idx =~ /^(kernel\/linux)|(base-files)$/; if ($idx) { my $depline; next if $pkg->{src} eq $pkg_dep->{src}.$suffix;