summaryrefslogtreecommitdiffstats
path: root/src/arch
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/arch
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/arch')
-rw-r--r--src/arch/x86/Makefile2
-rw-r--r--src/arch/x86/Makefile.efi2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/x86/Makefile b/src/arch/x86/Makefile
index 1751c0cda..98c49b98d 100644
--- a/src/arch/x86/Makefile
+++ b/src/arch/x86/Makefile
@@ -19,4 +19,4 @@ CFLAGS += -DNVALGRIND
# Include Hyper-V driver in the all-drivers build
#
-DRIVERS += hyperv
+DRIVERS_hyperv += hyperv
diff --git a/src/arch/x86/Makefile.efi b/src/arch/x86/Makefile.efi
index 13a69d9f7..f73bc7d5d 100644
--- a/src/arch/x86/Makefile.efi
+++ b/src/arch/x86/Makefile.efi
@@ -17,7 +17,7 @@ NON_AUTO_MEDIA += efirom
# Include SNP driver in the all-drivers build
#
-DRIVERS += snp
+DRIVERS_net += snp
# Rules for building EFI files
#