xtest: pkcs11 test through libckteec and the PKCS11 TA
Introduce pkcs11 tests for PKCS#11 services through the PKCS11 TA.
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Signed-off-by: Victor Chong <victor.chong@linaro.org>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
diff --git a/host/xtest/Makefile b/host/xtest/Makefile
index 7b3de36..ff77b18 100644
--- a/host/xtest/Makefile
+++ b/host/xtest/Makefile
@@ -87,6 +87,15 @@
srcs += sdp_basic.c
endif
+ifeq ($(CFG_PKCS11_TA),y)
+srcs += pkcs11_1000.c
+
+OPTEE_PKCS11_TA_HEADERS ?= ../../../optee_client/libckteec/include
+CFLAGS += -DCFG_PKCS11_TA
+CFLAGS += -I$(OPTEE_PKCS11_TA_HEADERS)
+LDFLAGS += -L$(OPTEE_CLIENT_EXPORT)/lib -lckteec
+endif
+
ifdef CFG_GP_PACKAGE_PATH
CFLAGS += -DWITH_GP_TESTS