[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 <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2026-02-12 12:48:16 +00:00
parent 0992d9b560
commit 5669c4d52e
3 changed files with 10 additions and 8 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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)