From 5669c4d52e347e3da27b33dddf9c77a2cecd9570 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 12 Feb 2026 12:48:16 +0000 Subject: [PATCH] [build] Include Xen and Hyper-V drivers only in x86 BIOS and UEFI builds The Xen and Hyper-V drivers cannot be included in the Linux userspace build since they require MMIO accesses. Limit these drivers to being included in the all-drivers build only for BIOS and UEFI platforms. Signed-off-by: Michael Brown --- src/arch/x86/Makefile | 8 -------- src/arch/x86/Makefile.efi | 5 +++++ src/arch/x86/Makefile.pcbios | 5 +++++ 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/arch/x86/Makefile b/src/arch/x86/Makefile index b84ee830c..1a1f2dacd 100644 --- a/src/arch/x86/Makefile +++ b/src/arch/x86/Makefile @@ -28,11 +28,3 @@ CFLAGS += -DNVALGRIND # Define version string for lkrnprefix.S # CFLAGS_lkrnprefix += -DVERSION="\"$(VERSION)\"" - -# Include Xen driver in the all-drivers build -# -DRIVERS_ipxe += $(DRIVERS_xenbus_net) - -# Include Hyper-V driver in the all-drivers build -# -DRIVERS_ipxe += $(DRIVERS_vmbus_net) diff --git a/src/arch/x86/Makefile.efi b/src/arch/x86/Makefile.efi index f04be425b..8c2c1caf8 100644 --- a/src/arch/x86/Makefile.efi +++ b/src/arch/x86/Makefile.efi @@ -4,3 +4,8 @@ # MAKEDEPS += Makefile.efi include Makefile.efi + +# Include Xen and Hyper-V drivers in the all-drivers build +# +DRIVERS_ipxe += $(DRIVERS_xenbus_net) +DRIVERS_ipxe += $(DRIVERS_vmbus_net) diff --git a/src/arch/x86/Makefile.pcbios b/src/arch/x86/Makefile.pcbios index 38dfa087c..d02e62512 100644 --- a/src/arch/x86/Makefile.pcbios +++ b/src/arch/x86/Makefile.pcbios @@ -105,3 +105,8 @@ NON_AUTO_MEDIA += pdsk %pdsk : %dsk $(Q)cp $< $@ $(Q)$(PADIMG) --blksize=1474560 $@ + +# Include Xen and Hyper-V drivers in the all-drivers build +# +DRIVERS_ipxe += $(DRIVERS_xenbus_net) +DRIVERS_ipxe += $(DRIVERS_vmbus_net) -- 2.47.3