Skip to content

Commit 16cfdaf

Browse files
nordicjmde-nordic
authored andcommitted
boot: zephyr: Fix including asn1 when ed25519 is used
Fixes wrongly including the asn1 MBEDTLS file when the Kconfig is set to not include it Signed-off-by: Jamie McCrae <[email protected]>
1 parent 4e108f7 commit 16cfdaf

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

boot/zephyr/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,13 @@ elseif(CONFIG_BOOT_SIGNATURE_TYPE_ED25519 OR CONFIG_BOOT_ENCRYPT_X25519)
281281
${FIAT_DIR}/src/curve25519.c
282282
)
283283
else()
284+
if(MBEDTLS_ASN1_DIR)
285+
zephyr_library_sources(
286+
${MBEDTLS_ASN1_DIR}/src/asn1parse.c
287+
)
288+
endif()
289+
284290
zephyr_library_sources(
285-
${MBEDTLS_ASN1_DIR}/src/asn1parse.c
286291
${BOOT_DIR}/bootutil/src/ed25519_psa.c
287292
)
288293
endif()

0 commit comments

Comments
 (0)