From f3abf2b9de5fa5b6841fcb328f313df0fd9be737 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Fri, 16 Jan 2026 22:32:36 +0000 Subject: [PATCH] [pci] Drag in PCI commands only when PCI support is present Signed-off-by: Michael Brown --- src/config/config.c | 3 --- src/config/config_pci.c | 4 ++++ 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 #include #include @@ -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