Skip to content

Commit af268f8

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 f7209d5 commit af268f8

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
@@ -315,10 +315,15 @@ elseif(CONFIG_BOOT_SIGNATURE_TYPE_ED25519 OR CONFIG_BOOT_ENCRYPT_X25519)
315315
${MBEDTLS_ASN1_DIR}/src/asn1parse.c
316316
)
317317
endif()
318-
319-
zephyr_library_sources(
320-
${BOOT_DIR}/bootutil/src/ed25519_psa.c
321-
)
318+
if(NOT CONFIG_BOOT_SIGNATURE_USING_KMU)
319+
zephyr_library_sources(
320+
${BOOT_DIR}/bootutil/src/ed25519_psa.c
321+
)
322+
else()
323+
zephyr_library_sources(
324+
${BOOT_DIR}/bootutil/src/ed25519_psa_kmu.c
325+
)
326+
endif()
322327
endif()
323328
endif()
324329

0 commit comments

Comments
 (0)