summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMasahiro Yamada2019-07-17 08:17:56 +0200
committerMasahiro Yamada2019-07-17 19:19:31 +0200
commit7deb55f57159f9de696ef8d5e93b201a6aba871c (patch)
tree18fc3c41a86d4c551bc95edf8254b225858e8095 /scripts
parentkbuild: modpost: read modules.order instead of $(MODVERDIR)/*.mod (diff)
downloadkernel-qcow2-linux-7deb55f57159f9de696ef8d5e93b201a6aba871c.tar.gz
kernel-qcow2-linux-7deb55f57159f9de696ef8d5e93b201a6aba871c.tar.xz
kernel-qcow2-linux-7deb55f57159f9de696ef8d5e93b201a6aba871c.zip
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>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/export_report.pl11
1 files changed, 5 insertions, 6 deletions
diff --git a/scripts/export_report.pl b/scripts/export_report.pl
index 0f604f62f067..7d3030d03a25 100755
--- a/scripts/export_report.pl
+++ b/scripts/export_report.pl
@@ -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;
}