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
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
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 $f_name = basename($f);
$fwbase_name->{$f_name} = 1;
}
- warn "WARN: allowed to skip existing '$fw'\n" if $skip->{$fw};
+ warn "WARN: allowed to skip existing '$fw'\n" if $ALLOW_MISSING->{$fw};
next;
} else {
- next if $skip->{$fw};
+ 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;
}
- 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++;