Browse Source

[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 years ago
parent
commit
9b99d2af0c
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      src/util/parserom.pl

+ 1
- 0
src/util/parserom.pl View File

49
          \s*.*\s*		   # Driver data
49
          \s*.*\s*		   # Driver data
50
        \)/x ) {
50
        \)/x ) {
51
     ( my $vendor, my $device, my $image, my $desc ) = ( lc $1, lc $2, $3, $4 );
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
     rom ( "pci", lc "${vendor}${device}", $desc, $vendor, $device );
53
     rom ( "pci", lc "${vendor}${device}", $desc, $vendor, $device );
53
     rom ( "pci", $image, $desc, $vendor, $device, 1 );
54
     rom ( "pci", $image, $desc, $vendor, $device, 1 );
54
   } elsif ( /^\s*ISA_ROM\s*\(
55
   } elsif ( /^\s*ISA_ROM\s*\(

Loading…
Cancel
Save