diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-02-11 23:19:03 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-02-11 23:19:03 +0000 |
commit | 33cfdf8ce5c8b5786176dd232e4698ee14237e97 (patch) | |
tree | 82ffc6b3c9af508fd0c85a51cae8e1e6bdf42082 /kernel | |
parent | cad0628b21c98bc472725ed4bdc15eca0d6a031b (diff) | |
download | drakx-33cfdf8ce5c8b5786176dd232e4698ee14237e97.tar drakx-33cfdf8ce5c8b5786176dd232e4698ee14237e97.tar.gz drakx-33cfdf8ce5c8b5786176dd232e4698ee14237e97.tar.bz2 drakx-33cfdf8ce5c8b5786176dd232e4698ee14237e97.tar.xz drakx-33cfdf8ce5c8b5786176dd232e4698ee14237e97.zip |
do not use custom modules.dep format anymore
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/modules.pl | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/kernel/modules.pl b/kernel/modules.pl index 23af8c099..6fd0fd07d 100644 --- a/kernel/modules.pl +++ b/kernel/modules.pl @@ -44,8 +44,6 @@ sub modules() { sub remove_unneeded_modules { my ($kern_ver) = @_; - #- need creating a first time the modules.dep for all modules - filter_modules_dep($kern_ver); load_dependencies("all.kernels/$kern_ver/modules.dep"); my @all = modules(); @@ -64,20 +62,6 @@ sub make_modules_per_image { system("cd $dir ; tar cf ../all_modules.tar *.ko.gz") == 0 or die "tar failed\n"; } -sub filter_modules_dep { - my ($kern_ver) = @_; - - my @l = cat_("all.kernels/$kern_ver/modules.dep"); - - @l = map { - my ($f, $d) = split ':'; - my ($module, @deps) = map { m!.*/(.*)\.k?o(\.gz)$! && $1 } $f, split(' ', $d); - join(' ', "$module:", @deps); - } @l; - - output("all.kernels/$kern_ver/modules.dep", map { "$_\n" } @l); -} - sub get_main_modules() { my $base = dirname($0); my $main = chomp_(cat_("$base/RPMS/.main")); |