Parcourir la 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 il y a 13 ans
Parent
révision
9b99d2af0c
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1
    0
      src/util/parserom.pl

+ 1
- 0
src/util/parserom.pl Voir le fichier

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

Chargement…
Annuler
Enregistrer