Skip to content

Commit

Permalink
kbuild: export_report: read modules.order instead of .tmp_versions/*.mod
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Masahiro Yamada committed Jul 17, 2019
1 parent ff9b45c commit 7deb55f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions scripts/export_report.pl
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,12 @@ sub usage {

sub collectcfiles {
my @file;
while (<.tmp_versions/*.mod>) {
open my $fh, '<', $_ or die "cannot open $_: $!\n";
push (@file,
grep s/\.ko/.mod.c/, # change the suffix
grep m/.+\.ko/, # find the .ko path
<$fh>); # lines in opened file
open my $fh, '< modules.order' or die "cannot open modules.order: $!\n";
while (<$fh>) {
s/\.ko$/.mod.c/;
push (@file, $_)
}
close($fh);
chomp @file;
return @file;
}
Expand Down

0 comments on commit 7deb55f

Please sign in to comment.