blob: 5972f5d1a5c2b91c6ba49a25846e619939bb663e [file] [log] [blame]
Julian Hall628be292021-08-04 16:57:40 +01001#-------------------------------------------------------------------------------
2# Copyright (c) 2021, 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}/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.
19target_compile_definitions(${TGT} PRIVATE
20 PSA_CRYPTO_CLIENT_CALLER_SELECTION_H="service/crypto/client/caller/stub/crypto_caller.h"
21)