Skip to content

Commit 1ec89b1

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 <dominik.ermel@nordicsemi.no>
1 parent 31222e1 commit 1ec89b1

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
@@ -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)