You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by pk...@apache.org on 2023/07/13 20:49:11 UTC
[nuttx] 03/03: cmake: cmse support for armv8-m
This is an automated email from the ASF dual-hosted git repository.
pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 019b7a39d4d56ae8eedafceac787ed9444effac2
Author: raiden00pl <ra...@railab.me>
AuthorDate: Thu Jul 13 16:26:06 2023 +0200
cmake: cmse support for armv8-m
---
arch/arm/src/cmake/armv8-m.cmake | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm/src/cmake/armv8-m.cmake b/arch/arm/src/cmake/armv8-m.cmake
index ce304aeaea..2ed0890760 100644
--- a/arch/arm/src/cmake/armv8-m.cmake
+++ b/arch/arm/src/cmake/armv8-m.cmake
@@ -59,4 +59,8 @@ if(CONFIG_ARMV8M_STACKCHECK)
list(APPEND PLATFORM_FLAGS -finstrument-functions -ffixed-r10)
endif()
+if(CONFIG_ARMV8M_CMSE)
+ list(APPEND PLATFORM_FLAGS -mcmse)
+endif()
+
add_compile_options(${PLATFORM_FLAGS})