summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Brown2026-01-16 23:32:36 +0100
committerMichael Brown2026-01-16 23:32:36 +0100
commitf3abf2b9de5fa5b6841fcb328f313df0fd9be737 (patch)
treea3ea5b2c03be1f9971dbf65fdb2a1438bcdc037d /src
parent[build] Canonicalise console type configuration (diff)
downloadipxe-f3abf2b9de5fa5b6841fcb328f313df0fd9be737.tar.gz
ipxe-f3abf2b9de5fa5b6841fcb328f313df0fd9be737.tar.xz
ipxe-f3abf2b9de5fa5b6841fcb328f313df0fd9be737.zip
[pci] Drag in PCI commands only when PCI support is present
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src')
-rw-r--r--src/config/config.c3
-rw-r--r--src/config/config_pci.c4
2 files changed, 4 insertions, 3 deletions
diff --git a/src/config/config.c b/src/config/config.c
index c32bcee88..187244b14 100644
--- a/src/config/config.c
+++ b/src/config/config.c
@@ -270,9 +270,6 @@ REQUIRE_OBJECT ( shell );
#ifdef NSLOOKUP_CMD
REQUIRE_OBJECT ( nslookup_cmd );
#endif
-#ifdef PCI_CMD
-REQUIRE_OBJECT ( pci_cmd );
-#endif
#ifdef PARAM_CMD
REQUIRE_OBJECT ( param_cmd );
#endif
diff --git a/src/config/config_pci.c b/src/config/config_pci.c
index c6c9b92a5..dc5073ef6 100644
--- a/src/config/config_pci.c
+++ b/src/config/config_pci.c
@@ -22,6 +22,7 @@
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
FILE_SECBOOT ( PERMITTED );
+#include <config/general.h>
#include <config/settings.h>
#include <config/ioapi.h>
@@ -33,6 +34,9 @@ FILE_SECBOOT ( PERMITTED );
PROVIDE_REQUIRING_SYMBOL();
+#ifdef PCI_CMD
+REQUIRE_OBJECT ( pci_cmd );
+#endif
#ifdef PCI_SETTINGS
REQUIRE_OBJECT ( pci_settings );
#endif