Home Home > GIT Browse > scripts
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Kubecek <mkubecek@suse.cz>2019-08-08 08:19:35 +0200
committerMichal Kubecek <mkubecek@suse.cz>2019-08-08 08:19:35 +0200
commit95df98b61fde89dc062362d0540e7aba349a29bf (patch)
tree9d0ad4d456e2363cfdf5b46ffe4234bd3fdbf453
parente1353be651631a960957d82b948f613095816c46 (diff)
scripts/supported-conf-fixup: recognize compressed modules
At the moment, just allow *.ko.xz in addition to *.ko. It would be nice to make it respect COMPRESS_MODULES from rpm/config.sh but that would require someone who does actually speak Perl.
-rwxr-xr-xscripts/supported-conf-fixup6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/supported-conf-fixup b/scripts/supported-conf-fixup
index 52511d02ab..e7c7144090 100755
--- a/scripts/supported-conf-fixup
+++ b/scripts/supported-conf-fixup
@@ -106,7 +106,7 @@ sub gather_path
if ($file_or_dir eq "modules.builtin") {
open(BUILTIN, "<$file_or_dir") or die;
while (<BUILTIN>) {
- next unless m,^kernel/(.*)/([^/]+)\.ko$,;
+ next unless m,^kernel/(.*)/([^/]+)\.ko(\.xz)?$,;
$path = $1;
$module = $2;
@@ -124,7 +124,7 @@ sub gather_path
return unless $module_path =~ s,^(.*?/)?kernel/,,;
if (-f $file_or_dir) {
- return unless $module_path =~ m,^(.*)/([^/]+)\.ko$,;
+ return unless $module_path =~ m,^(.*)/([^/]+)\.ko(\.xz)?$,;
$path = $1;
$module = $2;
@@ -264,7 +264,7 @@ sub check_path
return;
}
- unless ($module_path =~ m,^(.*)/([^/]+)(\.ko)$, ||
+ unless ($module_path =~ m,^(.*)/([^/]+)(\.ko)(\.xz)?$, ||
$module_path =~ m,^(.*)/([^/]+)$,) {
print STDERR "$sup_conf_file: $line: Unparsable module path: $module_path\n";
return;