Skip to content

Commit bb003f7

Browse files
tomi-fontfabiobaltieri
authored andcommitted
secure_storage: warn when there is no ITS store module implementation
Output a CMake error when the ITS store module is enabled but no implementation ended up enabled (due to unfulfilled prerequisites). This is to make it more clear than undefined references at link time. Not a fatal error because CMake cannot fail for the twister filtering to work on the tests. Signed-off-by: Tomi Fontanilles <[email protected]>
1 parent 3eba06d commit bb003f7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

subsys/secure_storage/src/its/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,9 @@ zephyr_library_sources_ifdef(CONFIG_SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_ZMS
3030
zephyr_library_sources_ifdef(CONFIG_SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_SETTINGS
3131
store/settings.c
3232
)
33+
if (CONFIG_SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_NONE)
34+
message(ERROR "
35+
The secure storage ITS module is enabled but has no implementation.
36+
(CONFIG_SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_NONE)
37+
")
38+
endif()

0 commit comments

Comments
 (0)