Skip to content

Commit 6cf13e0

Browse files
committed
modules: openthread: add CMake error if Secure Storage has no backend
Secure Storage is used as PSA ITS in builds where TF-M is not enabled, but it needs a storage backend where to physically save data. If CONFIG_SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_ZMS is used then its "depends on" guarantee that there is a partition to use as physical storage. If CONFIG_SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_SETTINGS is used instead it might happen that CONFIG_SETTINGS_NONE gets selected resulting in Settings not being able to store data anywhere. This commit make the build to fail in this last case. Signed-off-by: Valerio Setti <[email protected]>
1 parent a0ee54c commit 6cf13e0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

modules/openthread/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
if(CONFIG_OPENTHREAD)
22
if(CONFIG_OPENTHREAD_SOURCES)
33

4+
if(CONFIG_OPENTHREAD_CRYPTO_PSA AND NOT CONFIG_BUILD_WITH_TFM)
5+
if(CONFIG_SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_SETTINGS AND CONFIG_SETTINGS_NONE)
6+
message(FATAL_ERROR "No backend selected for Secure Storage.")
7+
endif()
8+
endif()
9+
410
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)
511

612
macro(kconfig_to_ot_option kconfig_option ot_config description)

0 commit comments

Comments
 (0)