assemble: add a force-include list of used, but not referenced FWs

for now throw in the iwlwifi pnvm files, without that AX210 cards may
file

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-10-12 13:52:45 +02:00
parent 68a65518fb
commit b0b6de23bf

View File

@ -15,6 +15,10 @@ die "no firmware list specified" if !$fwlist || ! -f $fwlist;
my $target = shift;
die "no target directory" if !$target || ! -d $target;
my $FORCE_INCLUDE = [
'iwlwifi-*.pnvm',
];
my $ALLOW_MISSING = {};
# debian squeeze also misses those files
foreach my $fw (qw(
@ -575,6 +579,10 @@ while(defined(my $line = <$fd>)) {
}
close($fd);
for my $fw ($FORCE_INCLUDE->@*) {
add_fw($fw, 'FORCE_INCLUDE');
}
exit($error) if $error;
my $target_fw_string = `find '$target' -type f -o -type l`;