blob: f508e53d383eb32f9aa1612cf98d658e5247bb01 [file] [log] [blame]
Julian Hallc02fffb2020-11-23 18:22:06 +01001#-------------------------------------------------------------------------------
2# Copyright (c) 2020, Arm Limited and Contributors. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6#-------------------------------------------------------------------------------
7if (NOT DEFINED TGT)
8 message(FATAL_ERROR "mandatory parameter TGT is not defined.")
9endif()
10
11target_sources(${TGT} PRIVATE
12 "${CMAKE_CURRENT_LIST_DIR}/crypto_provider.c"
13 )
14
15target_include_directories(${TGT}
16 PRIVATE
17 "${CMAKE_CURRENT_LIST_DIR}"
18 )
19
20# Force use of the mbed crypto configuration required by the crypto service
21# provider. This configuration includes enabling the use of the PSA ITS API
22# for persistent key storage which is realised by the its client adapter
23# for the secure storage service.
24set(MBEDCRYPTO_CONFIG_FILE
25 "${CMAKE_CURRENT_LIST_DIR}/config_mbed_crypto.h"
26 CACHE STRING "Configuration file for mbedcrypto" FORCE)
27
28set(MBEDCRYPTO_EXTRA_INCLUDES
29 "${TS_ROOT}/components/service/common"
30 "${TS_ROOT}/components/service/secure_storage/client"
31 CACHE STRING "PSA ITS for mbedcrypto" FORCE)