Use mbedtls from Crypto SP in SMMGW
Crypto SP provides hash calculation and signature verification API-s
that will be used by the uefi service in SMMGW SP.
Signed-off-by: Gabor Toth <gabor.toth2@arm.com>
Change-Id: I03e2862662734275221481784d82d8498c6f08af
diff --git a/deployments/smm-gateway/smm-gateway.cmake b/deployments/smm-gateway/smm-gateway.cmake
index 7921d59..e0bd773 100644
--- a/deployments/smm-gateway/smm-gateway.cmake
+++ b/deployments/smm-gateway/smm-gateway.cmake
@@ -1,5 +1,5 @@
#-------------------------------------------------------------------------------
-# Copyright (c) 2021-2022, Arm Limited and Contributors. All rights reserved.
+# Copyright (c) 2021-2023, Arm Limited and Contributors. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
@@ -19,6 +19,16 @@
"protocols/rpc/common/packed-c"
)
+if (UEFI_AUTH_VAR)
+add_components(TARGET "smm-gateway"
+ BASE_DIR ${TS_ROOT}
+ COMPONENTS
+ "components/common/tlv"
+ "components/service/crypto/include"
+ "components/service/crypto/client/psa"
+)
+endif()
+
target_include_directories(smm-gateway PRIVATE
${TS_ROOT}
${TS_ROOT}/components