Skip to content

Commit 3b3f0c5

Browse files
oyvindronningstadioannisg
authored andcommitted
[nrf fromlist] Kconfig.tfm: Add TFM_CMAKE_BUILD_TYPE config
Controlling the build type of the TFM build system. Upstream PR: zephyrproject-rtos/zephyr#31915 Signed-off-by: Øyvind Rønningstad <oyvind.ronningstad@nordicsemi.no>
1 parent c0dbb81 commit 3b3f0c5

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

modules/Kconfig.tfm

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,28 @@ config TFM_PROFILE
7878
profile_medium and profile_small. The default profile does not need
7979
to have this configuration set.
8080

81+
choice
82+
bool
83+
prompt "TFM build type"
84+
default TFM_CMAKE_BUILD_TYPE_RELEASE if SPEED_OPTIMIZATIONS && BUILD_OUTPUT_STRIPPED
85+
default TFM_CMAKE_BUILD_TYPE_MINSIZEREL if SIZE_OPTIMIZATIONS
86+
default TFM_CMAKE_BUILD_TYPE_DEBUG if DEBUG_OPTIMIZATIONS
87+
default TFM_CMAKE_BUILD_TYPE_RELWITHDEBINFO
88+
89+
config TFM_CMAKE_BUILD_TYPE_RELEASE
90+
bool "Release build"
91+
92+
config TFM_CMAKE_BUILD_TYPE_RELWITHDEBINFO
93+
bool "Release build with Debug info"
94+
95+
config TFM_CMAKE_BUILD_TYPE_MINSIZEREL
96+
bool "Release build, optimized for size"
97+
98+
config TFM_CMAKE_BUILD_TYPE_DEBUG
99+
bool "Debug build"
100+
101+
endchoice
102+
81103
config TFM_ISOLATION_LEVEL
82104
int "Isolation level setting."
83105
range 1 3

0 commit comments

Comments
 (0)