blob: ace24a01198c7ecb10bf7ee405c5f82b5f10bff2 [file] [log] [blame]
Jerome Forissierf02a2212015-10-29 14:33:35 +01001LOCAL_PATH := $(call my-dir)
2
Yongqin Liu26b8aa82016-06-02 20:54:19 +08003## include variants like TA_DEV_KIT_DIR
4## and target of BUILD_OPTEE_OS
5INCLUDE_FOR_BUILD_TA := false
6include $(BUILD_OPTEE_MK)
7INCLUDE_FOR_BUILD_TA :=
8
Jerome Forissierf02a2212015-10-29 14:33:35 +01009VERSION = $(shell git describe --always --dirty=-dev 2>/dev/null || echo Unknown)
10OPTEE_CLIENT_PATH ?= $(LOCAL_PATH)/../optee_client
11
Jerome Forissierf02a2212015-10-29 14:33:35 +010012-include $(TA_DEV_KIT_DIR)/host_include/conf.mk
13
14include $(CLEAR_VARS)
15LOCAL_MODULE := xtest
Zoltan Kuscsikd3c5c2c2016-04-08 11:33:39 +020016LOCAL_SHARED_LIBRARIES := libteec
Jerome Forissierf02a2212015-10-29 14:33:35 +010017
18srcs := xtest_1000.c \
19 xtest_4000.c \
20 xtest_5000.c \
21 xtest_6000.c \
22 xtest_7000.c \
23 xtest_10000.c \
24 xtest_20000.c \
Jerome Forissier555b1372015-12-28 16:13:10 +010025 xtest_benchmark_1000.c \
Igor Opaniuka00eeb12016-09-28 15:57:58 -070026 xtest_benchmark_2000.c \
Jerome Forissierf02a2212015-10-29 14:33:35 +010027 xtest_helpers.c \
28 xtest_main.c \
29 xtest_test.c \
30 adbg/src/adbg_case.c \
31 adbg/src/adbg_enum.c \
32 adbg/src/adbg_expect.c \
33 adbg/src/adbg_log.c \
34 adbg/src/adbg_mts.c \
35 adbg/src/adbg_run.c \
36 adbg/src/adbg_util.c \
37 adbg/src/r_list_genutil.c \
38 adbg/src/security_utils_hex.c \
Igor Opaniuka00eeb12016-09-28 15:57:58 -070039 adbg/src/security_utils_mem.c \
40 aes_perf.c \
41 sha_perf.c
Jerome Forissierf02a2212015-10-29 14:33:35 +010042
43LOCAL_SRC_FILES := $(patsubst %,host/xtest/%,$(srcs))
44
Zoltan Kuscsikc8186b32016-04-08 11:35:17 +020045LOCAL_C_INCLUDES += $(LOCAL_PATH)/host/xtest \
46 $(LOCAL_PATH)/host/xtest/adbg/include\
Zoltan Kuscsik56cee0b2016-04-13 09:39:42 +020047 $(LOCAL_PATH)/host/xtest/xml/include \
Zoltan Kuscsikc8186b32016-04-08 11:35:17 +020048 $(TA_DEV_KIT_DIR)/host_include \
49 $(LOCAL_PATH)/ta/concurrent/include \
Jens Wiklander70672972016-04-06 00:01:45 +020050 $(LOCAL_PATH)/ta/concurrent_large/include \
Zoltan Kuscsikc8186b32016-04-08 11:35:17 +020051 $(LOCAL_PATH)/ta/create_fail_test/include \
52 $(LOCAL_PATH)/ta/crypt/include \
53 $(LOCAL_PATH)/ta/enc_fs/include \
54 $(LOCAL_PATH)/ta/os_test/include \
55 $(LOCAL_PATH)/ta/rpc_test/include \
56 $(LOCAL_PATH)/ta/sims/include \
57 $(LOCAL_PATH)/ta/storage/include \
58 $(LOCAL_PATH)/ta/storage_benchmark/include \
Igor Opaniuka00eeb12016-09-28 15:57:58 -070059 $(LOCAL_PATH)/ta/sha_perf/include \
60 $(LOCAL_PATH)/ta/aes_perf/include
Jerome Forissierf02a2212015-10-29 14:33:35 +010061
Jerome Forissierf9b89252016-08-23 18:30:43 +020062# Include configuration file generated by OP-TEE OS (CFG_* macros)
63LOCAL_CFLAGS += -include conf.h
Jerome Forissierf02a2212015-10-29 14:33:35 +010064
65LOCAL_CFLAGS += -DUSER_SPACE
66LOCAL_CFLAGS += -DTA_DIR=\"/system/lib/optee_armtz\"
67LOCAL_CFLAGS += -pthread
Jerome Forissiera8b78f12016-08-17 09:40:59 +020068LOCAL_CFLAGS += -g3
Jerome Forissierf02a2212015-10-29 14:33:35 +010069
Yongqin Liu26b8aa82016-06-02 20:54:19 +080070## target BUILD_OPTEE_OS is defined in the common ta build
71## mk file included before, and this BUILD_OPTEE_OS will
72## help to generate the header files under $(TA_DEV_KIT_DIR)/host_include
73LOCAL_ADDITIONAL_DEPENDENCIES := BUILD_OPTEE_OS
74
Jerome Forissierf02a2212015-10-29 14:33:35 +010075include $(BUILD_EXECUTABLE)
Zoltan Kuscsik21758dc2016-04-13 09:41:02 +020076
77include $(LOCAL_PATH)/ta/Android.mk