Skip to content

Commit 5ccd172

Browse files
oyvindronningstadgalak
authored andcommitted
CMakeLists.txt: Change BL2 arg to be default True
This is the behavior of TFM after the build system refactor. Signed-off-by: Øyvind Rønningstad <[email protected]>
1 parent f3476cc commit 5ccd172

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

CMakeLists.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# interface to secure domain using IPC.
1818
# ISOLATION_LEVEL: The TF-M isolation level to use
1919
# REGRESSION: Boolean if TF-M build includes building the TF-M regression tests
20-
# BL2: Boolean if the TF-M build uses MCUboot.
20+
# BL2: Boolean if the TF-M build uses MCUboot. Default: True
2121
#
2222
# Example usage:
2323
#
@@ -34,9 +34,10 @@ function(trusted_firmware_build)
3434
set(oneValueArgs BINARY_DIR BOARD BL2 ISOLATION_LEVEL CMAKE_BUILD_TYPE BUILD_PROFILE)
3535
cmake_parse_arguments(TFM "${options}" "${oneValueArgs}" "" ${ARGN})
3636

37-
if(DEFINED TFM_BL2)
38-
set(TFM_BL2_ARG "-DBL2=${TFM_BL2}")
37+
if(NOT DEFINED TFM_BL2)
38+
set(TFM_BL2 True)
3939
endif()
40+
set(TFM_BL2_ARG "-DBL2=${TFM_BL2}")
4041

4142
if(DEFINED TFM_IPC)
4243
set(TFM_IPC_ARG -DTFM_PSA_API=ON)

0 commit comments

Comments
 (0)