]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
firmware: trusted_foundations: add ARMv7 dependency
authorArnd Bergmann <arnd@arndb.de>
Mon, 17 Jun 2019 12:33:23 +0000 (14:33 +0200)
committerOlof Johansson <olof@lixom.net>
Tue, 18 Jun 2019 10:20:35 +0000 (03:20 -0700)
The "+sec" extension is invalid for older ARM architectures, but
the code can now be built on any ARM configuration:

/tmp/trusted_foundations-2d0882.s: Assembler messages:
/tmp/trusted_foundations-2d0882.s:194: Error: architectural extension `sec' is not allowed for the current base architecture
/tmp/trusted_foundations-2d0882.s:201: Error: selected processor does not support `smc #0' in ARM mode
/tmp/trusted_foundations-2d0882.s:213: Error: architectural extension `sec' is not allowed for the current base architecture
/tmp/trusted_foundations-2d0882.s:220: Error: selected processor does not support `smc #0' in ARM mode

Add a dependency on ARMv7 for the build.

Fixes: 4cb5d9eca143 ("firmware: Move Trusted Foundations support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Olof Johansson <olof@lixom.net>
drivers/firmware/Kconfig

index 9026df9235428801b5284750a91a42ff958f7700..d40ccc3af9e26a25dd99a99739f9553f234f7529 100644 (file)
@@ -256,7 +256,7 @@ config TI_SCI_PROTOCOL
 
 config TRUSTED_FOUNDATIONS
        bool "Trusted Foundations secure monitor support"
-       depends on ARM
+       depends on ARM && CPU_V7
        help
          Some devices (including most early Tegra-based consumer devices on
          the market) are booted with the Trusted Foundations secure monitor