[PATCH] tee: QCOMTEE should depend on ARCH_QCOM

Geert Uytterhoeven posted 1 patch 4 months, 1 week ago
drivers/tee/qcomtee/Kconfig | 1 +
1 file changed, 1 insertion(+)
[PATCH] tee: QCOMTEE should depend on ARCH_QCOM
Posted by Geert Uytterhoeven 4 months, 1 week ago
The Qualcomm Trusted Execution Environment (QTEE) is only available on
Qualcomm SoCs.  Hence add a dependency on ARCH_QCOM, to prevent asking
the user about this driver when configuring a kernel without Qualcomm
platform support.

Fixes: d6e290837e50f73f ("tee: add Qualcomm TEE driver")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
 drivers/tee/qcomtee/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/tee/qcomtee/Kconfig b/drivers/tee/qcomtee/Kconfig
index 927686abceb1536e..9f19dee08db491c3 100644
--- a/drivers/tee/qcomtee/Kconfig
+++ b/drivers/tee/qcomtee/Kconfig
@@ -2,6 +2,7 @@
 # Qualcomm Trusted Execution Environment Configuration
 config QCOMTEE
 	tristate "Qualcomm TEE Support"
+	depends on ARCH_QCOM || COMPILE_TEST
 	depends on !CPU_BIG_ENDIAN
 	select QCOM_SCM
 	select QCOM_TZMEM_MODE_SHMBRIDGE
-- 
2.43.0
Re: [PATCH] tee: QCOMTEE should depend on ARCH_QCOM
Posted by Konrad Dybcio 4 months, 1 week ago
On 9/30/25 4:44 PM, Geert Uytterhoeven wrote:
> The Qualcomm Trusted Execution Environment (QTEE) is only available on
> Qualcomm SoCs.  Hence add a dependency on ARCH_QCOM, to prevent asking
> the user about this driver when configuring a kernel without Qualcomm
> platform support.
> 
> Fixes: d6e290837e50f73f ("tee: add Qualcomm TEE driver")
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

Konrad
Re: [PATCH] tee: QCOMTEE should depend on ARCH_QCOM
Posted by Jens Wiklander 4 months, 1 week ago
On Wed, Oct 1, 2025 at 10:23 AM Konrad Dybcio
<konrad.dybcio@oss.qualcomm.com> wrote:
>
> On 9/30/25 4:44 PM, Geert Uytterhoeven wrote:
> > The Qualcomm Trusted Execution Environment (QTEE) is only available on
> > Qualcomm SoCs.  Hence add a dependency on ARCH_QCOM, to prevent asking
> > the user about this driver when configuring a kernel without Qualcomm
> > platform support.
> >
> > Fixes: d6e290837e50f73f ("tee: add Qualcomm TEE driver")
> > Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> > ---
>
> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

Applied.

Thanks,
Jens