summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/modules.pl12
1 files changed, 12 insertions, 0 deletions
diff --git a/kernel/modules.pl b/kernel/modules.pl
index 6fd0fd07d..2f4f4557e 100644
--- a/kernel/modules.pl
+++ b/kernel/modules.pl
@@ -41,6 +41,18 @@ 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) = @_;