Skip to contentSkip to conversation

firmware: intel_stratix10_service: add hardware dependency

PATCH New [email protected] 1 participant 1 message Jan 23, 2019

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 firmware: intel_stratix10_service: add hardware dependency

From: Richard Gong <[email protected]>

Add a Kconfig dependency to ensure Intel Stratix10 service layer driver can be built only on the platform that supports it.

---
v2: add depends on COMPILE_TEST

---
 drivers/firmware/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/firmware/Kconfig +1 -1
index f754578..7e5491a 100644
@@ -218,7 +218,7 @@ config FW_CFG_SYSFS_CMDLINE
 
 config INTEL_STRATIX10_SERVICE
 	tristate "Intel Stratix10 Service Layer"
-	depends on HAVE_ARM_SMCCC
+	depends on (ARCH_STRATIX10 && HAVE_ARM_SMCCC) || COMPILE_TEST
 	default n
 	help
 	  Intel Stratix10 service layer runs at privileged exception level,
Signature · 1 line
2.7.4