Commit 16cfdaf3 authored by Jamie McCrae's avatar Jamie McCrae Committed by Dominik Ermel
Browse files

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: default avatarJamie McCrae <jamie.mccrae@nordicsemi.no>
parent 4e108f70
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -281,8 +281,13 @@ elseif(CONFIG_BOOT_SIGNATURE_TYPE_ED25519 OR CONFIG_BOOT_ENCRYPT_X25519)
      ${FIAT_DIR}/src/curve25519.c
    )
  else()
    if(MBEDTLS_ASN1_DIR)
      zephyr_library_sources(
        ${MBEDTLS_ASN1_DIR}/src/asn1parse.c
      )
    endif()

    zephyr_library_sources(
      ${BOOT_DIR}/bootutil/src/ed25519_psa.c
    )
  endif()