cmake: use zephyr_library_app_memory for mem partition placement
This commit removes the hard coded mbed TLS library name
`lib..__modules__crypto__mbedtls.a` in top-level CMakeLists.txt file
and instead uses zephyr_library_app_memory function.
Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 167c885..d7301b3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1061,9 +1061,6 @@
if(CONFIG_NEWLIB_LIBC_NANO)
set(NEWLIB_PART -l libc_nano.a z_libc_partition)
endif()
- if(CONFIG_MBEDTLS)
- set(MBEDTLS_PART -l lib..__modules__crypto__mbedtls.a k_mbedtls_partition)
- endif()
add_custom_command(
OUTPUT ${APP_SMEM_UNALIGNED_LD}
@@ -1071,7 +1068,7 @@
${ZEPHYR_BASE}/scripts/gen_app_partitions.py
-d ${OBJ_FILE_DIR}
-o ${APP_SMEM_UNALIGNED_LD}
- ${NEWLIB_PART} ${MBEDTLS_PART}
+ ${NEWLIB_PART}
$<TARGET_PROPERTY:zephyr_property_target,COMPILE_OPTIONS>
$<$<BOOL:${CMAKE_VERBOSE_MAKEFILE}>:--verbose>
DEPENDS
@@ -1122,7 +1119,7 @@
${ZEPHYR_BASE}/scripts/gen_app_partitions.py
-e $<TARGET_FILE:app_smem_unaligned_prebuilt>
-o ${APP_SMEM_ALIGNED_LD}
- ${NEWLIB_PART} ${MBEDTLS_PART}
+ ${NEWLIB_PART}
$<TARGET_PROPERTY:zephyr_property_target,COMPILE_OPTIONS>
$<$<BOOL:${CMAKE_VERBOSE_MAKEFILE}>:--verbose>
DEPENDS