]> git.proxmox.com Git - pve-firmware.git/commitdiff
assemble: add a force-include list of used, but not referenced FWs
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 12 Oct 2022 11:52:45 +0000 (13:52 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 12 Oct 2022 11:52:50 +0000 (13:52 +0200)
for now throw in the iwlwifi pnvm files, without that AX210 cards may
file

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
assemble-firmware.pl

index dc518b1fb756e06c3e44708835abfe87f6052d48..662256e4feb41d03cd1d47404bd364e075a6abb5 100755 (executable)
@@ -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`;