From 4595d13ab869ba6610319673ddddbdec3fe9df36 Mon Sep 17 00:00:00 2001 From: EricB-ADI <122300463+EricB-ADI@users.noreply.github.com> Date: Thu, 26 Sep 2024 15:01:46 -0500 Subject: [PATCH] fix(CMSIS): Default Secure mode to zero when security mode not specified (#1195) Co-authored-by: Sihyung Woo <75494566+sihyung-maxim@users.noreply.github.com> --- Libraries/CMSIS/Device/Maxim/GCC/gcc.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Libraries/CMSIS/Device/Maxim/GCC/gcc.mk b/Libraries/CMSIS/Device/Maxim/GCC/gcc.mk index aa62a1461e..95b1964837 100644 --- a/Libraries/CMSIS/Device/Maxim/GCC/gcc.mk +++ b/Libraries/CMSIS/Device/Maxim/GCC/gcc.mk @@ -300,8 +300,9 @@ PROJ_AFLAGS += -DIS_SECURE_ENVIRONMENT=1 PROJ_CFLAGS += -DIS_SECURE_ENVIRONMENT=1 else # Align with Zephyr flags. -# Do not define CONFIG_TRUSTED_EXECUTION_SECURE -# not defining means 0 +# Must be defined for the BLE build system. +PROJ_AFLAGS += -DCONFIG_TRUSTED_EXECUTION_SECURE=0 +PROJ_CFLAGS += -DCONFIG_TRUSTED_EXECUTION_SECURE=0 # Leaving these to support initial development. PROJ_AFLAGS += -DIS_SECURE_ENVIRONMENT=0 @@ -794,4 +795,3 @@ ifneq "$(QUERY_VAR)" "" else $(MAKE) debug endif -