Jerome Forissier | f02a221 | 2015-10-29 14:33:35 +0100 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | |
Yongqin Liu | 26b8aa8 | 2016-06-02 20:54:19 +0800 | [diff] [blame] | 3 | ## include variants like TA_DEV_KIT_DIR |
| 4 | ## and target of BUILD_OPTEE_OS |
| 5 | INCLUDE_FOR_BUILD_TA := false |
| 6 | include $(BUILD_OPTEE_MK) |
| 7 | INCLUDE_FOR_BUILD_TA := |
| 8 | |
Jerome Forissier | f02a221 | 2015-10-29 14:33:35 +0100 | [diff] [blame] | 9 | VERSION = $(shell git describe --always --dirty=-dev 2>/dev/null || echo Unknown) |
Jerome Forissier | f02a221 | 2015-10-29 14:33:35 +0100 | [diff] [blame] | 10 | |
Zoltan Kuscsik | 88b88c5 | 2016-10-20 09:15:56 +0200 | [diff] [blame] | 11 | # TA_DEV_KIT_DIR must be set to non-empty value to |
| 12 | # avoid the Android build scripts complaining about |
| 13 | # includes pointing outside the Android source tree. |
| 14 | # This var is expected to be set when OPTEE OS built. |
| 15 | # We set the default value to an invalid path. |
| 16 | TA_DEV_KIT_DIR ?= ../invalid_include_path |
| 17 | |
Jerome Forissier | f02a221 | 2015-10-29 14:33:35 +0100 | [diff] [blame] | 18 | -include $(TA_DEV_KIT_DIR)/host_include/conf.mk |
| 19 | |
| 20 | include $(CLEAR_VARS) |
| 21 | LOCAL_MODULE := xtest |
Zoltan Kuscsik | d3c5c2c | 2016-04-08 11:33:39 +0200 | [diff] [blame] | 22 | LOCAL_SHARED_LIBRARIES := libteec |
Jerome Forissier | f02a221 | 2015-10-29 14:33:35 +0100 | [diff] [blame] | 23 | |
Jens Wiklander | 02389a9 | 2016-12-16 11:13:38 +0100 | [diff] [blame] | 24 | srcs := xtest_1000.c |
| 25 | |
| 26 | ifeq ($(CFG_GP_SOCKETS),y) |
| 27 | srcs += xtest_2000.c \ |
| 28 | sock_server.c \ |
| 29 | rand_stream.c |
| 30 | endif |
| 31 | |
| 32 | srcs += xtest_4000.c \ |
Jerome Forissier | f02a221 | 2015-10-29 14:33:35 +0100 | [diff] [blame] | 33 | xtest_5000.c \ |
| 34 | xtest_6000.c \ |
| 35 | xtest_7000.c \ |
| 36 | xtest_10000.c \ |
| 37 | xtest_20000.c \ |
Jerome Forissier | 555b137 | 2015-12-28 16:13:10 +0100 | [diff] [blame] | 38 | xtest_benchmark_1000.c \ |
Igor Opaniuk | a00eeb1 | 2016-09-28 15:57:58 -0700 | [diff] [blame] | 39 | xtest_benchmark_2000.c \ |
Jerome Forissier | f02a221 | 2015-10-29 14:33:35 +0100 | [diff] [blame] | 40 | xtest_helpers.c \ |
| 41 | xtest_main.c \ |
| 42 | xtest_test.c \ |
| 43 | adbg/src/adbg_case.c \ |
| 44 | adbg/src/adbg_enum.c \ |
| 45 | adbg/src/adbg_expect.c \ |
| 46 | adbg/src/adbg_log.c \ |
Jerome Forissier | f02a221 | 2015-10-29 14:33:35 +0100 | [diff] [blame] | 47 | adbg/src/adbg_run.c \ |
Jerome Forissier | f02a221 | 2015-10-29 14:33:35 +0100 | [diff] [blame] | 48 | adbg/src/security_utils_hex.c \ |
Igor Opaniuk | a00eeb1 | 2016-09-28 15:57:58 -0700 | [diff] [blame] | 49 | aes_perf.c \ |
| 50 | sha_perf.c |
Jerome Forissier | f02a221 | 2015-10-29 14:33:35 +0100 | [diff] [blame] | 51 | |
| 52 | LOCAL_SRC_FILES := $(patsubst %,host/xtest/%,$(srcs)) |
| 53 | |
Zoltan Kuscsik | c8186b3 | 2016-04-08 11:35:17 +0200 | [diff] [blame] | 54 | LOCAL_C_INCLUDES += $(LOCAL_PATH)/host/xtest \ |
| 55 | $(LOCAL_PATH)/host/xtest/adbg/include\ |
Zoltan Kuscsik | 56cee0b | 2016-04-13 09:39:42 +0200 | [diff] [blame] | 56 | $(LOCAL_PATH)/host/xtest/xml/include \ |
Zoltan Kuscsik | c8186b3 | 2016-04-08 11:35:17 +0200 | [diff] [blame] | 57 | $(TA_DEV_KIT_DIR)/host_include \ |
| 58 | $(LOCAL_PATH)/ta/concurrent/include \ |
Jens Wiklander | 7067297 | 2016-04-06 00:01:45 +0200 | [diff] [blame] | 59 | $(LOCAL_PATH)/ta/concurrent_large/include \ |
Zoltan Kuscsik | c8186b3 | 2016-04-08 11:35:17 +0200 | [diff] [blame] | 60 | $(LOCAL_PATH)/ta/create_fail_test/include \ |
| 61 | $(LOCAL_PATH)/ta/crypt/include \ |
| 62 | $(LOCAL_PATH)/ta/enc_fs/include \ |
| 63 | $(LOCAL_PATH)/ta/os_test/include \ |
| 64 | $(LOCAL_PATH)/ta/rpc_test/include \ |
| 65 | $(LOCAL_PATH)/ta/sims/include \ |
| 66 | $(LOCAL_PATH)/ta/storage/include \ |
| 67 | $(LOCAL_PATH)/ta/storage_benchmark/include \ |
Igor Opaniuk | a00eeb1 | 2016-09-28 15:57:58 -0700 | [diff] [blame] | 68 | $(LOCAL_PATH)/ta/sha_perf/include \ |
Victor Chong | 23139a3 | 2017-03-01 05:00:54 +0000 | [diff] [blame^] | 69 | $(LOCAL_PATH)/ta/aes_perf/include \ |
| 70 | $(LOCAL_PATH)/ta/socket/include |
Jerome Forissier | f02a221 | 2015-10-29 14:33:35 +0100 | [diff] [blame] | 71 | |
Jerome Forissier | f9b8925 | 2016-08-23 18:30:43 +0200 | [diff] [blame] | 72 | # Include configuration file generated by OP-TEE OS (CFG_* macros) |
| 73 | LOCAL_CFLAGS += -include conf.h |
Jerome Forissier | f02a221 | 2015-10-29 14:33:35 +0100 | [diff] [blame] | 74 | LOCAL_CFLAGS += -DTA_DIR=\"/system/lib/optee_armtz\" |
| 75 | LOCAL_CFLAGS += -pthread |
Jerome Forissier | a8b78f1 | 2016-08-17 09:40:59 +0200 | [diff] [blame] | 76 | LOCAL_CFLAGS += -g3 |
Jerome Forissier | f02a221 | 2015-10-29 14:33:35 +0100 | [diff] [blame] | 77 | |
Yongqin Liu | 26b8aa8 | 2016-06-02 20:54:19 +0800 | [diff] [blame] | 78 | ## target BUILD_OPTEE_OS is defined in the common ta build |
| 79 | ## mk file included before, and this BUILD_OPTEE_OS will |
| 80 | ## help to generate the header files under $(TA_DEV_KIT_DIR)/host_include |
| 81 | LOCAL_ADDITIONAL_DEPENDENCIES := BUILD_OPTEE_OS |
| 82 | |
Jerome Forissier | f02a221 | 2015-10-29 14:33:35 +0100 | [diff] [blame] | 83 | include $(BUILD_EXECUTABLE) |
Zoltan Kuscsik | 21758dc | 2016-04-13 09:41:02 +0200 | [diff] [blame] | 84 | |
| 85 | include $(LOCAL_PATH)/ta/Android.mk |