Rui Miguel Silva | 40c398f | 2021-12-09 14:17:39 +0000 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
| 2 | # Copyright (c) 2021-2023, Arm Limited and Contributors. All rights reserved. |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | #------------------------------------------------------------------------------- |
| 7 | if (NOT DEFINED TGT) |
| 8 | message(FATAL_ERROR "mandatory parameter TGT is not defined.") |
| 9 | endif() |
| 10 | |
| 11 | target_sources(${TGT} PRIVATE |
| 12 | "${CMAKE_CURRENT_LIST_DIR}/crypto_ipc_backend.c" |
| 13 | ) |
| 14 | |
| 15 | # The ipc crypto backend uses the psa crypto client to realize the |
| 16 | # psa crypto API that the crypto provider depends on. This define |
| 17 | # configures the psa crypto client to be built with the ipc crypto |
| 18 | # caller. |
| 19 | target_compile_definitions(${TGT} PRIVATE |
| 20 | PSA_CRYPTO_CLIENT_CALLER_SELECTION_H="service/crypto/client/caller/psa_ipc/crypto_caller.h" |
| 21 | ) |