diff mbox series

[5/6] gpio: tb10x: enable building the module with COMPILE_TEST=y

Message ID 20250408-gpio-compile-test-v1-5-140e108e9392@linaro.org
State New
Headers show
Series gpio: extend build coverage with COMPILE_TEST=y | expand

Commit Message

Bartosz Golaszewski April 8, 2025, 12:59 p.m. UTC
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

Extend the build coverage by allowing to build the module with
COMPILE_TEST enabled. Depend on the relevant machine symbol in order to
not pollute the Kconfig prompt needlessly.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
 drivers/gpio/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index b0a689993bb3..5258f260b527 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -700,7 +700,8 @@  config GPIO_TANGIER
 	  If built as a module its name will be gpio-tangier.
 
 config GPIO_TB10X
-	bool
+	bool "TB10X GPIO support"
+	depends on ARC_PLAT_TB10X || COMPILE_TEST
 	select GPIO_GENERIC
 	select GENERIC_IRQ_CHIP
 	select OF_GPIO