From 75114588b753062056feb94b8e6ab49aa4b64123 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 15 Feb 2012 06:13:06 +0000 Subject: (recompress_modules) kill it as we do not need anymore to recompress modules as XZ (since kernel now compress them with XZ) (remove_unneeded_modules) search for .xz extension instead of .gz --- kernel/modules.pl | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'kernel') diff --git a/kernel/modules.pl b/kernel/modules.pl index a939f7605..b64c92fa2 100644 --- a/kernel/modules.pl +++ b/kernel/modules.pl @@ -59,20 +59,12 @@ sub remove_unneeded_modules { my @all = modules(); my @all_with_deps = map { dependencies_closure($_) } @all; - my %wanted_modules = map { (list_modules::modname2filename($_) . ".ko.gz" => 1) } @all_with_deps; + my %wanted_modules = map { (list_modules::modname2filename($_) . ".ko.xz" => 1) } @all_with_deps; foreach (all("all.kernels/$kern_ver/modules")) { $wanted_modules{$_} or unlink "all.kernels/$kern_ver/modules/$_"; } } -sub recompress_modules { - my ($kern_ver) = @_; - - my $dir = "all.kernels/$kern_ver/modules"; - - system("cd $dir ; xzme *.ko.gz") == 0 or die "xzme failed\n"; -} - sub make_modules_per_image { my ($kern_ver) = @_; -- cgit v1.2.1