Commit 5a325928 authored by Andrzej Puzdrowski's avatar Andrzej Puzdrowski
Browse files

zephr: add mbedtls/library to inclusion directories for RSA encryption

Zephyr's MbedTLS module gives its interface header directory to inclusion
directory list. RSA encryption implementations requires internal header file
which resides in mbedtls/library directory.

This path adds missing inclusion directory path exclusively for
encrypted.c in zephyr-rtos port.

Signed-off-by: default avatarAndrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>
parent 6191b86d
Loading
Loading
Loading
Loading
+7 −0
Changes for boot/zephyr/CMakeLists.txt: 7 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -191,6 +191,13 @@ elseif(CONFIG_BOOT_SIGNATURE_TYPE_RSA)
  # Use mbedTLS provided by Zephyr for RSA signatures. (Its config file
  # is set using Kconfig.)
  zephyr_include_directories(include)
  if(CONFIG_BOOT_ENCRYPT_RSA)
    set_source_files_properties(
      ${BOOT_DIR}/bootutil/src/encrypted.c
      PROPERTIES
      INCLUDE_DIRECTORIES ${ZEPHYR_MBEDTLS_MODULE_DIR}/library
      )
  endif()
elseif(CONFIG_BOOT_SIGNATURE_TYPE_ED25519 OR CONFIG_BOOT_ENCRYPT_X25519)
  if(CONFIG_BOOT_USE_TINYCRYPT)
    zephyr_library_include_directories(