Skip to content
Permalink
Browse files

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 <Ioannis.Glaropoulos@nordicsemi.no>
  • Loading branch information...
ioannisg committed Jul 11, 2019
1 parent a3ee56f commit d075c9163469897b2904376423cbc24755610404
Showing with 4 additions and 0 deletions.
  1. +3 −0 boards/arm/mps2_an521/mps2_an521_defconfig
  2. +1 −0 soc/arm/arm/mps2/soc.h
@@ -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
@@ -16,6 +16,7 @@
#endif

#include <soc_devices.h>
#include <generated_dts_board.h>

extern void wakeup_cpu1(void);

0 comments on commit d075c91

Please sign in to comment.
You can’t perform that action at this time.