From b308c4044d864be2bb4e20802b0fc37bf4c9085b Mon Sep 17 00:00:00 2001 From: Sadik Ozer Date: Fri, 20 Sep 2024 11:31:58 +0300 Subject: [PATCH] Do not define CONFIG_TRUSTED_EXECUTION_SECURE for bare-metal Defining CONFIG_TRUSTED_EXECUTION_SECURE measn device execute in secure mode on zephyr side The driver especially flash_reva.c implemented by this way, so do not define it for bare-metal side Signed-off-by: Sadik Ozer --- Libraries/CMSIS/Device/Maxim/GCC/gcc.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/CMSIS/Device/Maxim/GCC/gcc.mk b/Libraries/CMSIS/Device/Maxim/GCC/gcc.mk index 432edae4e86..1bb8093c698 100644 --- a/Libraries/CMSIS/Device/Maxim/GCC/gcc.mk +++ b/Libraries/CMSIS/Device/Maxim/GCC/gcc.mk @@ -300,8 +300,8 @@ PROJ_AFLAGS += -DIS_SECURE_ENVIRONMENT=1 PROJ_CFLAGS += -DIS_SECURE_ENVIRONMENT=1 else # Align with Zephyr flags. -PROJ_AFLAGS += -DCONFIG_TRUSTED_EXECUTION_SECURE=0 -PROJ_CFLAGS += -DCONFIG_TRUSTED_EXECUTION_SECURE=0 +# Do not define CONFIG_TRUSTED_EXECUTION_SECURE +# not defining means 0 # Leaving these to support initial development. PROJ_AFLAGS += -DIS_SECURE_ENVIRONMENT=0