From dc19e630cb44b8ee313ac4b3852d92fcdf050dfc Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 22 Apr 2015 12:14:16 +0100 Subject: [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 --- src/arch/x86/Makefile | 2 +- src/arch/x86/Makefile.efi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/arch') 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 # -- cgit v1.2.3-55-g7522