瀏覽代碼

[build] Avoid generating ROMs with "match-any" vendor or device IDs

A PCI_ROM() entry containing a vendor or device ID of PCI_ANY_ID
(0xffff) indicates to pci_find_driver() that the entry's vendor or
device ID should be ignored when matching against the device's vendor
or device ID.  It does not represent a PCI ROM that should be built.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 13 年之前
父節點
當前提交
9b99d2af0c
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1
    0
      src/util/parserom.pl

+ 1
- 0
src/util/parserom.pl 查看文件

@@ -49,6 +49,7 @@ while ( <DRV> ) {
49 49
          \s*.*\s*		   # Driver data
50 50
        \)/x ) {
51 51
     ( my $vendor, my $device, my $image, my $desc ) = ( lc $1, lc $2, $3, $4 );
52
+    next if ( $vendor eq "ffff" ) || ( $device eq "ffff" );
52 53
     rom ( "pci", lc "${vendor}${device}", $desc, $vendor, $device );
53 54
     rom ( "pci", $image, $desc, $vendor, $device, 1 );
54 55
   } elsif ( /^\s*ISA_ROM\s*\(

Loading…
取消
儲存