Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions host/xtest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,11 @@ if (CFG_PKCS11_TA)
list (APPEND SRC pkcs11_1000.c)
endif()

if (CFG_APP_SECRETS_TA)
add_compile_options(-DCFG_APP_SECRETS_TA)
list (APPEND SRC asteec_1000.c)
endif()

if (CFG_CRYPTO_SE05X)
add_compile_options(-DCFG_CRYPTO_SE05X)
endif()
Expand Down Expand Up @@ -141,6 +146,10 @@ target_link_libraries (${PROJECT_NAME}
PRIVATE ckteec
)

if (CFG_APP_SECRETS_TA)
target_link_libraries (${PROJECT_NAME} PRIVATE asteec)
endif()

################################################################################
# Install targets
################################################################################
Expand Down
11 changes: 11 additions & 0 deletions host/xtest/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,20 @@ ifeq ($(CFG_PKCS11_TA),y)
srcs += pkcs11_1000.c
endif

ifeq ($(CFG_APP_SECRETS_TA),y)
srcs += asteec_1000.c
endif

objs := $(patsubst %.c,$(out-dir)/xtest/%.o, $(srcs))

ifeq ($(CFG_PKCS11_TA),y)
CFLAGS += -DCFG_PKCS11_TA
endif

ifeq ($(CFG_APP_SECRETS_TA),y)
CFLAGS += -DCFG_APP_SECRETS_TA
endif

ifeq ($(CFG_CRYPTO_SE05X),y)
CFLAGS += -DCFG_CRYPTO_SE05X
endif
Expand Down Expand Up @@ -161,6 +169,9 @@ LDFLAGS += -L$(OPTEE_CLIENT_EXPORT)/lib -lteec
ifeq ($(CFG_PKCS11_TA),y)
LDFLAGS += -lckteec
endif
ifeq ($(CFG_APP_SECRETS_TA),y)
LDFLAGS += -lasteec
endif
LDFLAGS += -lpthread -lm

.PHONY: all
Expand Down
Loading