modules: mbedtls: updates to reflect module directory restructuring

Updates in CMakeLists.txt to reflect the restructuring
in the module directory. This also bumps mbetls version
to 2.26.0.

Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
This commit is contained in:
Ioannis Glaropoulos 2021-05-07 19:27:49 +02:00 committed by Kumar Gala
commit 1a7f9598ba

View file

@ -7,7 +7,7 @@ if(CONFIG_MBEDTLS_BUILTIN)
)
target_include_directories(mbedTLS INTERFACE
${ZEPHYR_CURRENT_MODULE_DIR}/include
${ZEPHYR_CURRENT_MODULE_DIR}/mbedtls/include
configs
)
@ -15,7 +15,7 @@ if(CONFIG_MBEDTLS_BUILTIN)
file(GLOB
mbedtls_sources # This is an output parameter
${ZEPHYR_CURRENT_MODULE_DIR}/library/*.c
${ZEPHYR_CURRENT_MODULE_DIR}/mbedtls/library/*.c
)
zephyr_library_sources(
@ -28,7 +28,7 @@ if(CONFIG_ARCH_POSIX AND CONFIG_ASAN AND NOT CONFIG_64BIT)
# i386 assembly code used in MBEDTLS does not compile with size optimization
# if address sanitizer is enabled, as such switch default optimization level
# to speed
set_property(SOURCE ${ZEPHYR_CURRENT_MODULE_DIR}/library/bignum.c APPEND PROPERTY COMPILE_OPTIONS
set_property(SOURCE ${ZEPHYR_CURRENT_MODULE_DIR}/mbedtls/library/bignum.c APPEND PROPERTY COMPILE_OPTIONS
"${OPTIMIZE_FOR_SPEED_FLAG}")
endif ()