summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorMichael Brown2015-04-22 13:14:16 +0200
committerMichael Brown2015-04-22 13:21:14 +0200
commitdc19e630cb44b8ee313ac4b3852d92fcdf050dfc (patch)
tree6a33fb379d43f2b3cbcba8af65dee58d04c4d1dc /src/util
parent[rtl818x] Obviate RTL_ROM() hack (diff)
downloadipxe-dc19e630cb44b8ee313ac4b3852d92fcdf050dfc.tar.gz
ipxe-dc19e630cb44b8ee313ac4b3852d92fcdf050dfc.tar.xz
ipxe-dc19e630cb44b8ee313ac4b3852d92fcdf050dfc.zip
[build] Construct all-drivers list based on driver class
The USB bus drivers (ehci.c and xhci.c) have PCI device ID tables and hence PCI_ROM() lines, but should probably not be included in the all-drivers build on this basis, since they do nothing useful unless a USB network driver is also present. Fix by constructing the all-drivers list based on the driver class (i.e. the portion of the source path immediately after "drivers/"). Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/util')
-rwxr-xr-xsrc/util/parserom.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/parserom.pl b/src/util/parserom.pl
index 678e5c81..2c59f486 100755
--- a/src/util/parserom.pl
+++ b/src/util/parserom.pl
@@ -161,7 +161,7 @@ sub print_make_rules {
unless ( $state->{'is_header_printed'} ) {
print "# NIC\t\n";
print "# NIC\tfamily\t$state->{family}\n";
- print "DRIVERS += $state->{driver_name}\n";
+ print "DRIVERS_$state->{driver_class} += $state->{driver_name}\n";
print "\n";
$state->{'is_header_printed'} = 1;
}