mirror of
https://github.com/ipxe/ipxe
synced 2026-01-21 01:28:02 +03:00
[pci] Drag in PCI commands only when PCI support is present
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -270,9 +270,6 @@ REQUIRE_OBJECT ( shell );
|
|||||||
#ifdef NSLOOKUP_CMD
|
#ifdef NSLOOKUP_CMD
|
||||||
REQUIRE_OBJECT ( nslookup_cmd );
|
REQUIRE_OBJECT ( nslookup_cmd );
|
||||||
#endif
|
#endif
|
||||||
#ifdef PCI_CMD
|
|
||||||
REQUIRE_OBJECT ( pci_cmd );
|
|
||||||
#endif
|
|
||||||
#ifdef PARAM_CMD
|
#ifdef PARAM_CMD
|
||||||
REQUIRE_OBJECT ( param_cmd );
|
REQUIRE_OBJECT ( param_cmd );
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
||||||
FILE_SECBOOT ( PERMITTED );
|
FILE_SECBOOT ( PERMITTED );
|
||||||
|
|
||||||
|
#include <config/general.h>
|
||||||
#include <config/settings.h>
|
#include <config/settings.h>
|
||||||
#include <config/ioapi.h>
|
#include <config/ioapi.h>
|
||||||
|
|
||||||
@@ -33,6 +34,9 @@ FILE_SECBOOT ( PERMITTED );
|
|||||||
|
|
||||||
PROVIDE_REQUIRING_SYMBOL();
|
PROVIDE_REQUIRING_SYMBOL();
|
||||||
|
|
||||||
|
#ifdef PCI_CMD
|
||||||
|
REQUIRE_OBJECT ( pci_cmd );
|
||||||
|
#endif
|
||||||
#ifdef PCI_SETTINGS
|
#ifdef PCI_SETTINGS
|
||||||
REQUIRE_OBJECT ( pci_settings );
|
REQUIRE_OBJECT ( pci_settings );
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user