From: Michael Brown Date: Wed, 30 Mar 2011 14:57:33 +0000 (+0100) Subject: [build] Avoid generating ROMs with "match-any" vendor or device IDs X-Git-Tag: v1.20.1~2168 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b99d2af0cdcedcaaf9a69a0c758b8a7e644236a;p=thirdparty%2Fipxe.git [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 --- diff --git a/src/util/parserom.pl b/src/util/parserom.pl index a37e2a56f..cf9f7c69b 100644 --- a/src/util/parserom.pl +++ b/src/util/parserom.pl @@ -49,6 +49,7 @@ while ( ) { \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*\(