Skip to content

Commit fbb08db

Browse files
tomi-fontanangl
authored andcommitted
secure_storage: make the build fail in case of unsupported configuration
The ZMS implementation of the ITS store module is not supported when partition manager is used because the DT chosen `secure_storage_its_partition` cannot be used. This would require using a different, partition manager-specific configuration. As partition manager will be replaced this combination is just not supported. Signed-off-by: Tomi Fontanilles <[email protected]>
1 parent 9d787b2 commit fbb08db

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

Diff for: subsys/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ add_subdirectory_ifdef(CONFIG_SECURE_BOOT_STORAGE bootloader/bl_storage)
1313

1414
add_subdirectory_ifdef(CONFIG_NRF_SECURITY nrf_security)
1515
add_subdirectory_ifdef(CONFIG_TRUSTED_STORAGE trusted_storage)
16+
add_subdirectory_ifdef(CONFIG_SECURE_STORAGE secure_storage)
1617

1718
add_subdirectory(net)
1819
add_subdirectory_ifdef(CONFIG_ESB esb)

Diff for: subsys/secure_storage/CMakeLists.txt

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Copyright (c) 2025 Nordic Semiconductor ASA
2+
#
3+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
4+
5+
if(CONFIG_SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_ZMS AND CONFIG_PARTITION_MANAGER_ENABLED)
6+
message(FATAL_ERROR "
7+
CONFIG_SECURE_STORAGE_ITS_STORE_IMPLEMENTATION_ZMS is
8+
not supported when partition manager is enabled.
9+
")
10+
endif()

0 commit comments

Comments
 (0)