Skip to content

Commit c46acda

Browse files
committedNov 16, 2011
[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>
1 parent 8ef5f60 commit c46acda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/util/parserom.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ sub rom {
2828
$printed_family = 1;
2929
}
3030
print "\n";
31+
return if ( $vendor && ( ( $vendor eq "ffff" ) || ( $device eq "ffff" ) ) );
3132
print "# NIC\t$image\t$ids\t$desc\n";
3233
print "DRIVER_$image = $driver_name\n";
3334
print "ROM_TYPE_$image = $type\n";
@@ -49,7 +50,6 @@ sub rom {
4950
\s*.*\s* # Driver data
5051
\)/x ) {
5152
( my $vendor, my $device, my $image, my $desc ) = ( lc $1, lc $2, $3, $4 );
52-
next if ( $vendor eq "ffff" ) || ( $device eq "ffff" );
5353
rom ( "pci", lc "${vendor}${device}", $desc, $vendor, $device );
5454
rom ( "pci", $image, $desc, $vendor, $device, 1 );
5555
} elsif ( /^\s*ISA_ROM\s*\(

0 commit comments

Comments
 (0)
Please sign in to comment.