Skip to contentSkip to conversation

firmware: qcom: Add arch dependency for PAS services

PATCH New Peter Robinson 1 participant 1 message Oct 3

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 firmware: qcom: Add arch dependency for PAS services

The QCOM_PAS/QCOM_PAS_TEE are QCom specific hardware/firmware interfaces so add appropriate dependencies, but allow test builds, so that the drivers don't get pulled in for other unrelated builds.

Fixes 08314e7c2c38b ("firmware: qcom: Add a generic PAS service")
Fixes b6f7978da0c4d ("firmware: qcom: Add a PAS TEE service")
---
 drivers/firmware/qcom/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/firmware/qcom/Kconfig +2 -1
index c7f8413ab996c..aeb5acbdfe897 100644
@@ -8,6 +8,7 @@ menu "Qualcomm firmware drivers"
 
 config QCOM_PAS
 	tristate "Qualcomm generic PAS interface driver"
+	depends on ARCH_QCOM || COMPILE_TEST
 	help
 	  Enable the generic Peripheral Authentication Service (PAS) provided
 	  by the firmware. It acts as the common layer with different TZ
@@ -17,7 +18,7 @@ config QCOM_PAS
 config QCOM_PAS_TEE
 	tristate "Qualcomm PAS TEE interface driver"
 	select QCOM_PAS
-	depends on TEE
+	depends on TEE && (ARCH_QCOM || COMPILE_TEST)
 	depends on !CPU_BIG_ENDIAN
 	default m if ARCH_QCOM
 	help
Signature · 1 line
2.55.0