Skip to content

Commit 57f5919

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 19cac45 commit 57f5919

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

boot/zephyr/CMakeLists.txt

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -318,10 +318,15 @@ elseif(CONFIG_BOOT_SIGNATURE_TYPE_ED25519 OR CONFIG_BOOT_ENCRYPT_X25519)
318318
${MBEDTLS_ASN1_DIR}/src/asn1parse.c
319319
)
320320
endif()
321-
322-
zephyr_library_sources(
323-
${BOOT_DIR}/bootutil/src/ed25519_psa.c
324-
)
321+
if(NOT CONFIG_BOOT_SIGNATURE_USING_KMU)
322+
zephyr_library_sources(
323+
${BOOT_DIR}/bootutil/src/ed25519_psa.c
324+
)
325+
else()
326+
zephyr_library_sources(
327+
${BOOT_DIR}/bootutil/src/ed25519_psa_kmu.c
328+
)
329+
endif()
325330
endif()
326331
endif()
327332

0 commit comments

Comments
 (0)