From 9b99d2af0cdcedcaaf9a69a0c758b8a7e644236a Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 30 Mar 2011 15:57:33 +0100 Subject: [PATCH] [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 --- src/util/parserom.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/parserom.pl b/src/util/parserom.pl index a37e2a56..cf9f7c69 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*\(