The "pci" command depends on PCI being enabled, both in terms of how
it's gated in cmd/Makefile and the command implementation itself.
Express this dependency in Kconfig.

Signed-off-by: Tom Rini <[email protected]>
---
 cmd/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cmd/Kconfig b/cmd/Kconfig
index 4aa02dc809ad..fc121c7c2968 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -1696,6 +1696,7 @@ config CMD_PART_DUPCHECK
 
 config CMD_PCI
        bool "pci - Access PCI devices"
+       depends on PCI
        help
          Provide access to PCI (Peripheral Interconnect Bus), a type of bus
          used on some devices to allow the CPU to communicate with its
-- 
2.43.0

Reply via email to