Skip to content

Commit

Permalink
arch: arm: include GCC -mcmse compile option for secure firmware
Browse files Browse the repository at this point in the history
Make GCC compile with the -mcmse compile option, if we are
building a Secure firmware. The option will make Security
Extensions for secure executables available, and will set
the corresponding compile-time indicator flag, accordingly:
(i.e. __ARM_FEATURE_CMSE=3).

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
  • Loading branch information
ioannisg authored and nashif committed Aug 14, 2018
1 parent ba02c6d commit f8b5046
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion arch/arm/core/cortex_m/tz/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
zephyr_sources_ifdef(CONFIG_ARM_SECURE_FIRMWARE arm_core_tz.c)
# '-mcmse' enables the generation of code for the Secure state of the ARMv8-M
# Security Extensions. This option is required when building a Secure firmware.
zephyr_compile_options(-mcmse)

zephyr_sources(arm_core_tz.c)

0 comments on commit f8b5046

Please sign in to comment.