Skip to contentSkip to conversation

firmware: trusted_foundations: add ARMv7 dependency

PATCH Applied Arnd Bergmann 2 participants 2 messages Jun 17, 2019 – Jun 18, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 firmware: trusted_foundations: add ARMv7 dependency

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")
---
 drivers/firmware/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/firmware/Kconfig +1 -1
index 35078c6f334a..53446e39a32c 100644
@@ -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
Signature · 7 lines
2.20.0


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#1 lore raw
Quoted 10 lines · Arnd Bergmann

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

Quoted 4 lines

Add a dependency on ARMv7 for the build.

Fixes 4cb5d9eca143 ("firmware: Move Trusted Foundations support")

Applied to arm/fixes. Thanks!

-Olof