Skip to content

Commit 145d05d

Browse files
committed
[nrf noup] zephyr: ED25519 KMU has now separate unit for compilation
Modify CMake files to take the unit when KMU is desired. Signed-off-by: Dominik Ermel <[email protected]>
1 parent 5a00468 commit 145d05d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

boot/zephyr/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,11 +305,15 @@ elseif(CONFIG_BOOT_SIGNATURE_TYPE_ED25519 OR CONFIG_BOOT_ENCRYPT_X25519)
305305
zephyr_library_sources(
306306
${FIAT_DIR}/src/curve25519.c
307307
)
308-
else()
308+
elseif(NOT CONFIG_BOOT_SIGNATURE_USING_KMU)
309309
zephyr_library_sources(
310310
${MBEDTLS_ASN1_DIR}/src/asn1parse.c
311311
${BOOT_DIR}/bootutil/src/ed25519_psa.c
312312
)
313+
else()
314+
zephyr_library_sources(
315+
${BOOT_DIR}/bootutil/src/ed25519_psa_kmu.c
316+
)
313317
endif()
314318
endif()
315319

0 commit comments

Comments
 (0)