Skip to content

Commit 7deb55f

Browse files
committed
kbuild: export_report: read modules.order instead of .tmp_versions/*.mod
Towards the goal of removing MODVERDIR aka .tmp_versions, read out modules.order to get the list of modules to be processed. This is simpler than parsing *.mod files in .tmp_versions. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
1 parent ff9b45c commit 7deb55f

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

scripts/export_report.pl

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,12 @@ sub usage {
5252

5353
sub collectcfiles {
5454
my @file;
55-
while (<.tmp_versions/*.mod>) {
56-
open my $fh, '<', $_ or die "cannot open $_: $!\n";
57-
push (@file,
58-
grep s/\.ko/.mod.c/, # change the suffix
59-
grep m/.+\.ko/, # find the .ko path
60-
<$fh>); # lines in opened file
55+
open my $fh, '< modules.order' or die "cannot open modules.order: $!\n";
56+
while (<$fh>) {
57+
s/\.ko$/.mod.c/;
58+
push (@file, $_)
6159
}
60+
close($fh);
6261
chomp @file;
6362
return @file;
6463
}

0 commit comments

Comments
 (0)