From 77964056ffe63d87bee4e4afe8ddec541b0b5ce2 Mon Sep 17 00:00:00 2001 From: Pascal Terjan Date: Wed, 9 Sep 2009 17:50:59 +0000 Subject: embed all firmwares that are needed by the modules we embed --- kernel/modules.pl | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'kernel') 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) = @_; -- cgit v1.2.1