arm-trusted-firmware/drivers/auth/mbedtls/mbedtls_crypto.mk
Manish V Badarkhe 38f893692a feat(mbedtls-psa): register an ad-hoc PSA crypto driver
An ad-hoc MbedTLS PSA crypto driver is registered by compiling
a new driver file, namely mbedtls_psa_crypto.c when PSA_CRYPTO=1.
As of now, this file is the same as mbedtls_crypto.c, but subsequent
patches will update crypto functions in this file to trigger
PSA crypto APIs.

Change-Id: I404c347990661d87dcf5d0501d238e36914ec3ee
Signed-off-by: Manish V Badarkhe <Manish.Badarkhe@arm.com>
2023-10-05 09:27:15 +01:00

16 lines
477 B
Makefile

#
# Copyright (c) 2015-2023, Arm Limited and Contributors. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
include drivers/auth/mbedtls/mbedtls_common.mk
ifeq (${PSA_CRYPTO},1)
# Some of the PSA functions are declared in multiple header files
# that triggers this warning.
TF_CFLAGS += -Wno-error=redundant-decls
MBEDTLS_SOURCES += drivers/auth/mbedtls/mbedtls_psa_crypto.c
else
MBEDTLS_SOURCES += drivers/auth/mbedtls/mbedtls_crypto.c
endif