diff options
author | Jamie Fox <jamie.fox@arm.com> | 2019-04-09 14:21:04 +0100 |
---|---|---|
committer | Antonio de Angelis <antonio.deangelis@arm.com> | 2019-05-24 10:06:47 +0100 |
commit | 0e54ebc19440ccccc5b6f81f63868c0bcd99ce23 (patch) | |
tree | c974980ae491eb461def6b0185518076c8954d7c /BuildMbedCrypto.cmake | |
parent | 4743e6731b0fe8a00ceebfd74da098c7676ac6e0 (diff) | |
download | trusted-firmware-m-0e54ebc19440ccccc5b6f81f63868c0bcd99ce23.tar.gz |
Crypto: Migrate the service to use Mbed crypto library
This patch migrates the TF-M Crypto service to use the
Mbed crypto library version 1.0.0. The regression tests
for Crypto are temporarily disabled to avoid build
failures due to changes in the PSA Crypto API. Some
regression tests for Attestation are disabled as well
as they rely on service-to-service calls to Crypto and
need to use the newer API.
Change-Id: Ic49fd162e89881d7a9e94fa4cddd76fe9a53fa03
Signed-off-by: Jamie Fox <jamie.fox@arm.com>
Co-authored-By: Antonio de Angelis <antonio.deangelis@arm.com>
Diffstat (limited to 'BuildMbedCrypto.cmake')
-rw-r--r-- | BuildMbedCrypto.cmake | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/BuildMbedCrypto.cmake b/BuildMbedCrypto.cmake new file mode 100644 index 0000000000..4ee83fdfd5 --- /dev/null +++ b/BuildMbedCrypto.cmake @@ -0,0 +1,20 @@ +#------------------------------------------------------------------------------- +# Copyright (c) 2019, Arm Limited. All rights reserved. +# +# SPDX-License-Identifier: BSD-3-Clause +# +#------------------------------------------------------------------------------- + +# Mbed Crypto can be built in the same way Mbed TLS is built +include(${TFM_ROOT_DIR}/BuildMbedtls.cmake) + +# After building the install target, rename the installed include/psa directory +# to include/mbedcrypto/psa to avoid name clash with the PSA Crypto headers in +# TF-M. +add_custom_command(TARGET ${MBEDTLS_TARGET_NAME}_install + POST_BUILD + COMMAND ${CMAKE_COMMAND} -E copy_directory + ${MBEDTLS_INSTALL_DIR}/include/psa + ${MBEDTLS_INSTALL_DIR}/include/mbedcrypto/psa + COMMAND ${CMAKE_COMMAND} -E remove_directory + ${MBEDTLS_INSTALL_DIR}/include/psa) |