From d075c9163469897b2904376423cbc24755610404 Mon Sep 17 00:00:00 2001 From: Ioannis Glaropoulos Date: Thu, 11 Jul 2019 23:27:25 +0200 Subject: [PATCH] boards: arm: mps2_an521: force secure firmware image by default In order to increase code coverage, we force building a Secure Firmware image by default (i.e. with option CONFIG_TRUSTED_EXECUTION_SECURE set), when building for mps2_an521 board. CONFIG_TRUSTED_EXECUTION_SECURE enables compiling-in all TrustZone-related code in the tree, that is, all ARM-specific code inside #ifdef CONFIG_ARM_SECURE_FIRMWARE. Signed-off-by: Ioannis Glaropoulos --- boards/arm/mps2_an521/mps2_an521_defconfig | 3 +++ soc/arm/arm/mps2/soc.h | 1 + 2 files changed, 4 insertions(+) diff --git a/boards/arm/mps2_an521/mps2_an521_defconfig b/boards/arm/mps2_an521/mps2_an521_defconfig index 852a44a4e94..2461c5a84a6 100644 --- a/boards/arm/mps2_an521/mps2_an521_defconfig +++ b/boards/arm/mps2_an521/mps2_an521_defconfig @@ -29,4 +29,7 @@ CONFIG_UART_CMSDK_APB=y # Watchdog CONFIG_WATCHDOG=y +# Build a Secure firmware image +CONFIG_TRUSTED_EXECUTION_SECURE=y + CONFIG_I2C=y diff --git a/soc/arm/arm/mps2/soc.h b/soc/arm/arm/mps2/soc.h index daaabd7da3c..14b8d95756a 100644 --- a/soc/arm/arm/mps2/soc.h +++ b/soc/arm/arm/mps2/soc.h @@ -16,6 +16,7 @@ #endif #include +#include extern void wakeup_cpu1(void);