tee: add ARM_SMCCC dependency
authorArnd Bergmann <arnd@arndb.de>
Wed, 10 May 2017 19:05:16 +0000 (21:05 +0200)
committerJoonyoung Shim <jy0922.shim@samsung.com>
Wed, 26 Jul 2017 05:25:40 +0000 (14:25 +0900)
For the moment, the tee subsystem only makes sense in combination with
the op-tee driver that depends on ARM_SMCCC, so let's hide the subsystem
from users that can't select that.

Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
[egukim: Backported from mainline kernel v4.12]
Signed-off-by: Eunggu Kim <egukim@dignsys.com>
Change-Id: I1eaf9f24ff79dd9532632500f47cdbfa9918546e

drivers/tee/Kconfig

index 2330a4eb4e8b71ff30103ba57de63fc868c34726..a6df12d88f90cd097ab88df8d151970243aea26b 100644 (file)
@@ -1,6 +1,7 @@
 # Generic Trusted Execution Environment Configuration
 config TEE
        tristate "Trusted Execution Environment support"
+       depends on HAVE_ARM_SMCCC || COMPILE_TEST
        select DMA_SHARED_BUFFER
        select GENERIC_ALLOCATOR
        help