Explorar el Código

[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 hace 13 años
padre
commit
9b99d2af0c
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1
    0
      src/util/parserom.pl

+ 1
- 0
src/util/parserom.pl Ver fichero

@@ -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…
Cancelar
Guardar