Commit 432c32c9 authored by Fabio Utzig's avatar Fabio Utzig Committed by David Brown
Browse files

Fix ECDSA signature builds in Zephyr

Commit 3ac36ead updated the bundled asn1parser, which now consists of
two files. The Zephyr build system was not updated with that commit which
has broken ECDSA signature builds. This adds the new file.

This fixes #397.

Signed-off-by: default avatarFabio Utzig <utzig@apache.org>
parent 30a9265b
Loading
Loading
Loading
Loading
+1
Changes for boot/zephyr/CMakeLists.txt: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -125,6 +125,7 @@ delete the build folder and build from scratch.")
  target_compile_definitions(app PRIVATE MBEDTLS_CONFIG_FILE="${CMAKE_CURRENT_LIST_DIR}/include/mcuboot-mbedtls-cfg.h")
  # Additionally pull in just the ASN.1 parser from mbedTLS.
  target_sources(app PRIVATE "${MBEDTLS_ASN1_DIR}/src/asn1parse.c")
  target_sources(app PRIVATE "${MBEDTLS_ASN1_DIR}/src/platform_util.c")
elseif(CONFIG_BOOT_SIGNATURE_TYPE_RSA)
  # Use mbedTLS provided by Zephyr for RSA signatures. (Its config file
  # is set using Kconfig.)