summaryrefslogtreecommitdiffstats
path: root/src/util/parserom.pl
diff options
context:
space:
mode:
authorMichael Brown2011-03-30 16:57:33 +0200
committerMichael Brown2011-03-30 17:01:07 +0200
commit9b99d2af0cdcedcaaf9a69a0c758b8a7e644236a (patch)
treead3cc3e3907f85b3a5d0ab128cd646c9e0335d07 /src/util/parserom.pl
parent[build] Include $(BIN)/errors in "make clean" (diff)
downloadipxe-9b99d2af0cdcedcaaf9a69a0c758b8a7e644236a.tar.gz
ipxe-9b99d2af0cdcedcaaf9a69a0c758b8a7e644236a.tar.xz
ipxe-9b99d2af0cdcedcaaf9a69a0c758b8a7e644236a.zip
[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>
Diffstat (limited to 'src/util/parserom.pl')
-rw-r--r--src/util/parserom.pl1
1 files changed, 1 insertions, 0 deletions
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 ( <DRV> ) {
\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*\(