Skip to content

Commit 9425ecb

Browse files
de-nordicnvlsianpu
authored andcommitted
[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 <dominik.ermel@nordicsemi.no>
1 parent e0fe9ab commit 9425ecb

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

boot/zephyr/CMakeLists.txt

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -344,10 +344,15 @@ elseif(CONFIG_BOOT_SIGNATURE_TYPE_ED25519 OR CONFIG_BOOT_ENCRYPT_X25519)
344344
${MBEDTLS_ASN1_DIR}/src/asn1parse.c
345345
)
346346
endif()
347-
348-
zephyr_library_sources(
349-
${BOOT_DIR}/bootutil/src/ed25519_psa.c
350-
)
347+
if(NOT CONFIG_BOOT_SIGNATURE_USING_KMU)
348+
zephyr_library_sources(
349+
${BOOT_DIR}/bootutil/src/ed25519_psa.c
350+
)
351+
else()
352+
zephyr_library_sources(
353+
${BOOT_DIR}/bootutil/src/ed25519_psa_kmu.c
354+
)
355+
endif()
351356
endif()
352357
endif()
353358

0 commit comments

Comments
 (0)