Bläddra i källkod

[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 år sedan
förälder
incheckning
9b99d2af0c
1 ändrade filer med 1 tillägg och 0 borttagningar
  1. 1
    0
      src/util/parserom.pl

+ 1
- 0
src/util/parserom.pl Visa fil

@@ -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*\(

Laddar…
Avbryt
Spara