Commit 7deb55f5 authored by Masahiro Yamada's avatar Masahiro Yamada

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: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent ff9b45c5
...@@ -52,13 +52,12 @@ sub usage { ...@@ -52,13 +52,12 @@ sub usage {
sub collectcfiles { sub collectcfiles {
my @file; my @file;
while (<.tmp_versions/*.mod>) { open my $fh, '< modules.order' or die "cannot open modules.order: $!\n";
open my $fh, '<', $_ or die "cannot open $_: $!\n"; while (<$fh>) {
push (@file, s/\.ko$/.mod.c/;
grep s/\.ko/.mod.c/, # change the suffix push (@file, $_)
grep m/.+\.ko/, # find the .ko path
<$fh>); # lines in opened file
} }
close($fh);
chomp @file; chomp @file;
return @file; return @file;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment