]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[build] Include PCI drivers only in BIOS and UEFI builds
authorMichael Brown <mcb30@ipxe.org>
Thu, 12 Feb 2026 12:06:41 +0000 (12:06 +0000)
committerMichael Brown <mcb30@ipxe.org>
Thu, 12 Feb 2026 13:29:06 +0000 (13:29 +0000)
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 <mcb30@ipxe.org>
src/Makefile
src/Makefile.efi
src/arch/x86/Makefile.pcbios

index cdbd6a44f253de6f2973b2e54236374697d24e8c..ab5cd33b242ae9da111af076f0f112c9afe09d25 100644 (file)
@@ -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
 #
index ec1c34cd5608915268e3520ab2ea6330530a92a9..b2c541d9914e5003b9a156ad0a0d8d4197a789a5 100644 (file)
@@ -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
index d02e6251230275357796bd1fbd20231209f71e69..fc5d9a719954c7a0b585b18be049f6a1816d4d23 100644 (file)
@@ -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)