mirror of https://github.com/ipxe/ipxe.git
[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>
pull/5/head
parent
8ef5f6065d
commit
c46acda672
|
@ -28,6 +28,7 @@ sub rom {
|
||||||
$printed_family = 1;
|
$printed_family = 1;
|
||||||
}
|
}
|
||||||
print "\n";
|
print "\n";
|
||||||
|
return if ( $vendor && ( ( $vendor eq "ffff" ) || ( $device eq "ffff" ) ) );
|
||||||
print "# NIC\t$image\t$ids\t$desc\n";
|
print "# NIC\t$image\t$ids\t$desc\n";
|
||||||
print "DRIVER_$image = $driver_name\n";
|
print "DRIVER_$image = $driver_name\n";
|
||||||
print "ROM_TYPE_$image = $type\n";
|
print "ROM_TYPE_$image = $type\n";
|
||||||
|
@ -49,7 +50,6 @@ while ( <DRV> ) {
|
||||||
\s*.*\s* # Driver data
|
\s*.*\s* # Driver data
|
||||||
\)/x ) {
|
\)/x ) {
|
||||||
( my $vendor, my $device, my $image, my $desc ) = ( lc $1, lc $2, $3, $4 );
|
( 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", lc "${vendor}${device}", $desc, $vendor, $device );
|
||||||
rom ( "pci", $image, $desc, $vendor, $device, 1 );
|
rom ( "pci", $image, $desc, $vendor, $device, 1 );
|
||||||
} elsif ( /^\s*ISA_ROM\s*\(
|
} elsif ( /^\s*ISA_ROM\s*\(
|
||||||
|
|
Loading…
Reference in New Issue