Skip to content

Commit 34f565f

Browse files
ananglcarlescufi
authored andcommitted
nrf_security: Add definition of appmem partition for mbedtls library
... to make it possible to build with `CONFIG_USERSPACE` enabled (there is such definition in userspace.c in Zephyr but it is compiled only when `CONFIG_MBEDTLS` is enabled, what is not the case here). Ref.: NCSDK-15305 Signed-off-by: Andrzej Głąbek <[email protected]>
1 parent 9927d51 commit 34f565f

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

nrf_security/src/zephyr/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ if(DEFINED src_zephyr)
6464
$<TARGET_PROPERTY:${mbedcrypto_target},INTERFACE_COMPILE_DEFINITIONS>
6565
)
6666

67+
zephyr_library_sources_ifdef(CONFIG_USERSPACE mbedtls_partition.c)
6768
zephyr_library_app_memory(k_mbedtls_partition)
6869
endif()
6970

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/*
2+
* Copyright (c) 2022 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*
6+
*/
7+
8+
#include <zephyr/app_memory/app_memdomain.h>
9+
10+
K_APPMEM_PARTITION_DEFINE(k_mbedtls_partition);

0 commit comments

Comments
 (0)