Julian Hall | 628be29 | 2021-08-04 16:57:40 +0100 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
| 2 | # Copyright (c) 2021, 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}/stub_crypto_backend.c" |
| 13 | ) |
| 14 | |
| 15 | # The stub 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 stub crypto |
| 18 | # caller. |
| 19 | target_compile_definitions(${TGT} PRIVATE |
| 20 | PSA_CRYPTO_CLIENT_CALLER_SELECTION_H="service/crypto/client/caller/stub/crypto_caller.h" |
| 21 | ) |