[pci] Drag in PCI commands only when PCI support is present

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2026-01-16 22:32:36 +00:00
parent f7f685f8c9
commit f3abf2b9de
2 changed files with 4 additions and 3 deletions

View File

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

View File

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