From 13dc376240e88eb2e07127a3f281582faeb0c3f4 Mon Sep 17 00:00:00 2001 From: Ioannis Glaropoulos Date: Tue, 22 May 2018 13:30:59 +0200 Subject: [PATCH] arch: arm: introduce ARMV8_M_SE option This commit introduces the ARMV8_M_SE K-config option to signify the use of an ARMv8-M MCU with support for Security Extensions. It also introduces dependences of ARM_(NON)SECURE_FIRMWARE on ARMV8_M_SE. Signed-off-by: Ioannis Glaropoulos --- arch/arm/core/Kconfig | 2 ++ arch/arm/core/cortex_m/Kconfig | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/arch/arm/core/Kconfig b/arch/arm/core/Kconfig index 98b5102c1f7..de867144815 100644 --- a/arch/arm/core/Kconfig +++ b/arch/arm/core/Kconfig @@ -60,6 +60,7 @@ config ARM_STACK_PROTECTION config ARM_SECURE_FIRMWARE bool + depends on ARMV8_M_SE default n help This option indicates that we are building a Zephyr image that @@ -81,6 +82,7 @@ config ARM_SECURE_FIRMWARE config ARM_NONSECURE_FIRMWARE bool depends on !ARM_SECURE_FIRMWARE + depends on ARMV8_M_SE default n help This option indicates that we are building a Zephyr image that diff --git a/arch/arm/core/cortex_m/Kconfig b/arch/arm/core/cortex_m/Kconfig index e5eec3611cc..4f94a83990f 100644 --- a/arch/arm/core/cortex_m/Kconfig +++ b/arch/arm/core/cortex_m/Kconfig @@ -242,6 +242,15 @@ config ARMV8_M_MAINLINE ARMv8-M Main Extension includes additional features not present in the ARMv7-M architecture. +config ARMV8_M_SE + bool + # Omit prompt to signify "hidden" option + depends on ARMV8_M_BASELINE || ARMV8_M_MAINLINE + help + This option signifies the use of an ARMv8-M processor + implementation (Baseline or Mainline) supporting the + Security Extensions. + config ARMV7_M_ARMV8_M_FP bool # Omit prompt to signify "hidden" option