summaryrefslogtreecommitdiffstats
path: root/images/make_boot_img
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-04-03 13:17:04 +0000
committerThierry Vignaud <tv@mandriva.org>2009-04-03 13:17:04 +0000
commitbd3e0e17c383835f099d640e2c566bf5b184c115 (patch)
tree148edab7ce3be3c633e4708dfef716eacdefea7e /images/make_boot_img
parent30b33e19ac5828eb3f06af4270c6615f4c328552 (diff)
downloaddrakx-bd3e0e17c383835f099d640e2c566bf5b184c115.tar
drakx-bd3e0e17c383835f099d640e2c566bf5b184c115.tar.gz
drakx-bd3e0e17c383835f099d640e2c566bf5b184c115.tar.bz2
drakx-bd3e0e17c383835f099d640e2c566bf5b184c115.tar.xz
drakx-bd3e0e17c383835f099d640e2c566bf5b184c115.zip
include firmwares for most common network cards (#49195)
(list build from firmwares splited from in kernel drivers that are either GPL or redistribuable according to according to http://git.kernel.org/?p=linux/kernel/git/dwmw2/linux-firmware-from-kernel.git;a=blob;f=WHENCE;h=3814d7d426650f574e079730738978d01496b72f;hb=HEAD) (what's still missing is a userspace helper in order to laod the firmware when requested by the kernel)
Diffstat (limited to 'images/make_boot_img')
-rwxr-xr-ximages/make_boot_img6
1 files changed, 5 insertions, 1 deletions
diff --git a/images/make_boot_img b/images/make_boot_img
index 860020d68..48a415584 100755
--- a/images/make_boot_img
+++ b/images/make_boot_img
@@ -143,7 +143,7 @@ sub initrd {
my $stage1_root = $ENV{DEBUGSTAGE1} ? "../mdk-stage1" : "/usr/$lib/drakx-installer-binaries";
_ "rm -rf $tmp_initrd";
- mkdir_p("$tmp_initrd$_") foreach qw(/etc /lib /modules /sbin /tmp /var);
+ mkdir_p("$tmp_initrd$_") foreach qw(/etc /lib/firmware /modules /sbin /tmp /var);
symlink "../modules", "$tmp_initrd/lib/modules";
symlink "/proc/mounts", "$tmp_initrd/etc/mtab";
@@ -156,6 +156,10 @@ sub initrd {
foreach ("/usr/share/ldetect-lst/fallback-modules.alias", "/lib/module-init-tools/ldetect-lst-modules.alias") {
_ "install -D $_ $tmp_initrd$_";
}
+ foreach (grep { warn "> $_\n"; m!(3com|acenic|adaptec|cxgb3|e100|kaweth|tehuti|tigon)! } glob_("/lib/firmware/*")) {
+ warn ">> $_\n";
+ _ "cp -a $_ $tmp_initrd$_";
+ };
_ "install $stage1_root/init $tmp_initrd/";
foreach ('stage1', 'pppd', 'pppoe') {