[PATCH 03/19] pci: disable building CONFIG_PCI when CONFIG_COMPILE_TEST

Ahmad Fatoum a.fatoum at pengutronix.de
Mon Jun 12 06:02:24 PDT 2023


Architectures enabling HW_HAS_PCI are expected to also define <asm/pci.h>.
Giving HW_HAS_PCI a prompt can thus lead to build errors on
architectures that don't really support PCI. Remove the prompt again.

Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 drivers/pci/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pci/Kconfig b/drivers/pci/Kconfig
index 32a9e831b9e3..39df54f215cf 100644
--- a/drivers/pci/Kconfig
+++ b/drivers/pci/Kconfig
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: GPL-2.0-only
 config HW_HAS_PCI
-	bool "Compile in PCI core" if COMPILE_TEST
+	bool
 
 if HW_HAS_PCI
 
-- 
2.39.2




More information about the barebox mailing list