my $target = shift;
die "no target directory" if !$target || ! -d $target;
-my $skip = {};
+my $ALLOW_MISSING = {};
# debian squeeze also misses those files
foreach my $fw (qw(
3826.arm
ath6k/AR6004/hw1.1/fw.ram.bin
ath6k/AR6004/hw1.2/fw.ram.bin
ath6k/AR6004/hw1.3/fw.ram.bin
+atmsar11.fw
b43/ucode11.fw
b43/ucode13.fw
b43/ucode14.fw
bfubase.frm
brcm/brcm/brcmfmac*-pcie.*.txt
brcm/brcm/brcmfmac*-sdio.*.txt
+brcm/brcmfmac*-pcie.*.bin
brcm/brcmfmac*-pcie.*.txt
+brcm/brcmfmac*-pcie.txt
brcm/brcmfmac*-sdio.*.bin
brcm/brcmfmac*-sdio.*.txt
brcm/brcmfmac-sdio.bin
i1480-pre-phy-0.0.bin
i1480-usb-0.0.bin
i2400m-fw-sdio-1.3.sbcf
+i2400m-fw-usb-1.5.sbcf
+i6050-fw-usb-1.5.sbcf
idt82p33xxx.bin
isi4608.bin
isi4616.bin
ql2700_fw.bin
ql8100_fw.bin
ql8300_fw.bin
+regulatory.db
+regulatory.db.p7s
renesas_usb_fw.mem
rtl_bt/rtl8723b_config.bin
rtl_bt/rtl8723bs_config.bin
-wlwifi-SoSnj-a0-mr-a0-59.ucode
rtl_bt/rtl8723ds_config.bin
rtl_bt/rtl8723ds_fw.bin
rtl_bt/rtl8761a_config.bin
wil6436.brd
wil6436.fw
wlan/prima/WCNSS_qcom_wlan_nv.bin
+wlwifi-SoSnj-a0-mr-a0-59.ucode
zd1201-ap.fw
zd1201.fw
)) {
- $skip->{$fw} = 1;
+ $ALLOW_MISSING->{$fw} = 1;
}
sub copy_fw {
chomp $line;
my ($fw, $mod) = split(/\s+/, $line, 2);
+ next if $fw =~ m/\b(?:microcode_amd|amd_sev_)/; # contained in amd64-microcode
+
my $fw_name = basename($fw);
$fwbase_name->{$fw_name} = 1;
next if $mod =~ m|^kernel/drivers/isdn|;
# skip ZyDas usb wireless, use package zd1211-firmware instead
- next if $fw =~ m|^zd1211/|;
+ next if $fw =~ m|^zd1211/|;
- # skip atmel at76c50x wireless networking chips.
- # use package atmel-firmware instead
+ # skip atmel at76c50x wireless networking chips, use package atmel-firmware instead
next if $fw =~ m|^atmel_at76c50|;
- # skip Bluetooth dongles based on the Broadcom BCM203x
- # use package bluez-firmware instead
+ # skip Bluetooth dongles based on the Broadcom BCM203x, use package bluez-firmware instead
next if $fw =~ m|^BCM2033|;
next if $fw =~ m|^xc3028-v27\.fw|; # found twice!
- next if $fw =~ m|.inp|; # where are those files?
next if $fw =~ m|^ueagle-atm/|; # where are those files?
next if $fwdone->{$fw};
if ($fw eq 'PE520.cis') {
$fw = 'cis/PE520.cis';
}
-
+
if (-e "$target/$fw") {
- warn "WARN: allowed to skip existing '$fw'\n" if $skip->{$fw};
+ warn "WARN: allowed to skip existing '$fw'\n" if $ALLOW_MISSING->{$fw};
next;
}
if (-f "$fwsrc3/$fw") {
}
my $module = basename($mod);
+ my $name = basename($fw);
+
+ if ($name =~ /\*/) {
+ my $sr = `find '$target' \\( -type f -o -type l \\) -name '$name'`;
+ chomp $sr;
+ if ($sr) {
+ for my $f (split("\n", $sr)) {
+ print "found $f for GLOB '$name'\n";
+ my $f_name = basename($f);
+ $fwbase_name->{$f_name} = 1;
+ }
+ warn "WARN: allowed to skip existing '$fw'\n" if $ALLOW_MISSING->{$fw};
+ next;
+ } else {
+ next if $ALLOW_MISSING->{$fw};
+ warn "ERROR: unable to find FW for GLOB ($module): $fw\n";
+ $error++;
+ }
+ }
+
if ($fw =~ m|/|) {
- next if $skip->{$fw};
+ next if $ALLOW_MISSING->{$fw};
warn "ERROR: unable to find firmware ($module): $fw\n";
$error++;
next;
}
- my $name = basename($fw);
-
my $sr = `find '$target' \\( -type f -o -type l \\) -name '$name'`;
chomp $sr;
if ($sr) {
next;
}
- next if $skip->{$fw};
- next if $fw =~ m|^dvb-|;
+ next if $ALLOW_MISSING->{$fw};
+ next if $fw =~ m|^dvb-| || $fw =~ m|\.inp$|;
warn "ERROR: unable to find firmware ($module): $fw\n";
$error++;