From 019b7a39d4d56ae8eedafceac787ed9444effac2 Mon Sep 17 00:00:00 2001 From: raiden00pl Date: Thu, 13 Jul 2023 16:26:06 +0200 Subject: [PATCH] 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})