summaryrefslogtreecommitdiffstats
path: root/src/util/parserom.pl
diff options
context:
space:
mode:
authorMichael Brown2011-11-16 01:18:26 +0100
committerMichael Brown2011-11-16 01:22:30 +0100
commitc46acda67200bf01c27d1d039f1abc9b0e71b2b7 (patch)
tree76d02855fa241b688c7849f1fb9af4d402480d4e /src/util/parserom.pl
parent[arbel] Ensure hardware is quiescent when no interfaces are open (diff)
downloadipxe-c46acda67200bf01c27d1d039f1abc9b0e71b2b7.tar.gz
ipxe-c46acda67200bf01c27d1d039f1abc9b0e71b2b7.tar.xz
ipxe-c46acda67200bf01c27d1d039f1abc9b0e71b2b7.zip
[build] Include UNDI PCI driver within all-drivers build
Commit 9b99d2a ("[build] Avoid generating ROMs with "match-any" vendor or device IDs") introduced a regression which caused the UNDI PCI driver to be omitted from the list of all drivers, and thus to be excluded from the all-drivers build. Fix by ensuring that the per-driver section of the Makefile is generated even when there are no ROMs to be built. Reported-by: Sven Dreyer <sven@dreyer-net.de> Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/util/parserom.pl')
-rw-r--r--src/util/parserom.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/parserom.pl b/src/util/parserom.pl
index cf9f7c69..5e55c6da 100644
--- a/src/util/parserom.pl
+++ b/src/util/parserom.pl
@@ -28,6 +28,7 @@ sub rom {
$printed_family = 1;
}
print "\n";
+ return if ( $vendor && ( ( $vendor eq "ffff" ) || ( $device eq "ffff" ) ) );
print "# NIC\t$image\t$ids\t$desc\n";
print "DRIVER_$image = $driver_name\n";
print "ROM_TYPE_$image = $type\n";
@@ -49,7 +50,6 @@ 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*\(