]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[build] Avoid generating ROMs with "match-any" vendor or device IDs
authorMichael Brown <mcb30@ipxe.org>
Wed, 30 Mar 2011 14:57:33 +0000 (15:57 +0100)
committerMichael Brown <mcb30@ipxe.org>
Wed, 30 Mar 2011 15:01:07 +0000 (16:01 +0100)
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>
src/util/parserom.pl

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