summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mandriva.org>2009-09-09 17:50:59 +0000
committerPascal Terjan <pterjan@mandriva.org>2009-09-09 17:50:59 +0000
commit77964056ffe63d87bee4e4afe8ddec541b0b5ce2 (patch)
tree661a584e903890f687d1f3e72a6c738217b4f516 /kernel
parent07a8cc9cc9ed5c6fb9d69ecbf66f0dd51a702b1a (diff)
downloaddrakx-77964056ffe63d87bee4e4afe8ddec541b0b5ce2.tar
drakx-77964056ffe63d87bee4e4afe8ddec541b0b5ce2.tar.gz
drakx-77964056ffe63d87bee4e4afe8ddec541b0b5ce2.tar.bz2
drakx-77964056ffe63d87bee4e4afe8ddec541b0b5ce2.tar.xz
drakx-77964056ffe63d87bee4e4afe8ddec541b0b5ce2.zip
embed all firmwares that are needed by the modules we embed
Diffstat (limited to 'kernel')
-rw-r--r--kernel/modules.pl11
1 files changed, 11 insertions, 0 deletions
diff --git a/kernel/modules.pl b/kernel/modules.pl
index 6fd0fd07d..a47b272f9 100644
--- a/kernel/modules.pl
+++ b/kernel/modules.pl
@@ -41,6 +41,17 @@ sub modules() {
@nls_modules, map { category2modules($_) } split(' ', $images_cat);
}
+sub get_firmwares() {
+ my ($kern_ver) = @_;
+
+ foreach (all("all.kernels/$kern_ver/modules")) {
+ foreach(`/sbin/modinfo -Ffirmware "all.kernels/$kern_ver/modules/$_"`) {
+ mkdir_p(dirname("all.kernels/$kern_ver/firmware/$_"));
+ eval { cp_af("/lib/firmware/$_", "all.kernels/$kern_ver/firmware/$_"); };
+ }
+ }
+}
+
sub remove_unneeded_modules {
my ($kern_ver) = @_;