From: Michael Brown Date: Thu, 12 Feb 2026 12:06:41 +0000 (+0000) Subject: [build] Include PCI drivers only in BIOS and UEFI builds X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25429d952d2b82b60e505698512dce0b7aea89d8;p=thirdparty%2Fipxe.git [build] Include PCI drivers only in BIOS and UEFI builds We currently have no PCI bus abstractions for Linux userspace or for RISC-V SBI. Limit PCI drivers to being included in the all-drivers build only for BIOS and UEFI platforms. Signed-off-by: Michael Brown --- diff --git a/src/Makefile b/src/Makefile index cdbd6a44f..ab5cd33b2 100644 --- a/src/Makefile +++ b/src/Makefile @@ -241,10 +241,9 @@ version : # # Predefined build shortcuts (for e.g. bin/ipxe.iso) -# All drivers (excluding USB) +# All drivers (defined on a per-platform basis) # -DRIVERS_ipxe += $(DRIVERS_pci_net) -DRIVERS_ipxe += $(DRIVERS_pci_infiniband) +DRIVERS_ipxe += # Raspberry Pi # diff --git a/src/Makefile.efi b/src/Makefile.efi index ec1c34cd5..b2c541d99 100644 --- a/src/Makefile.efi +++ b/src/Makefile.efi @@ -23,6 +23,11 @@ NON_AUTO_MEDIA += efidrv NON_AUTO_MEDIA += drv.efi NON_AUTO_MEDIA += efirom +# Include PCI drivers in the all-drivers build +# +DRIVERS_ipxe += $(DRIVERS_pci_net) +DRIVERS_ipxe += $(DRIVERS_pci_infiniband) + # Include SNP and MNP drivers in the all-drivers build # DRIVERS_efi_net += snp mnp diff --git a/src/arch/x86/Makefile.pcbios b/src/arch/x86/Makefile.pcbios index d02e62512..fc5d9a719 100644 --- a/src/arch/x86/Makefile.pcbios +++ b/src/arch/x86/Makefile.pcbios @@ -106,6 +106,11 @@ NON_AUTO_MEDIA += pdsk $(Q)cp $< $@ $(Q)$(PADIMG) --blksize=1474560 $@ +# Include PCI drivers in the all-drivers build +# +DRIVERS_ipxe += $(DRIVERS_pci_net) +DRIVERS_ipxe += $(DRIVERS_pci_infiniband) + # Include Xen and Hyper-V drivers in the all-drivers build # DRIVERS_ipxe += $(DRIVERS_xenbus_net)