Skip to content

Commit d94780b

Browse files
urutvacarlescufi
authored andcommitted
[nrf fromtree] modules: trusted-firmware-m: Set TF-M isolation level
The CMake variable `TFM_ISOLATION_LEVEL_ARG` was not properly set when application configures higher isolation level. This led to isolation level always being to set 1. Signed-off-by: Devaraj Ranganna <[email protected]> Signed-off-by: Øyvind Rønningstad <[email protected]>
1 parent e22a780 commit d94780b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/trusted-firmware-m/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ function(trusted_firmware_build)
105105
target_compile_definitions(app PRIVATE "TFM_PSA_API")
106106
endif()
107107

108+
if(TFM_ISOLATION_LEVEL)
109+
set(TFM_ISOLATION_LEVEL_ARG -DTFM_ISOLATION_LEVEL=${TFM_ISOLATION_LEVEL})
110+
endif()
111+
108112
if (TFM_REGRESSION_S)
109113
set(TFM_REGRESSION_S_ARG -DTEST_S=ON)
110114
endif()

0 commit comments

Comments
 (0)