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) |
| 10 | OPTEE_CLIENT_PATH ?= $(LOCAL_PATH)/../optee_client |
| 11 | |
Jerome Forissier | f02a221 | 2015-10-29 14:33:35 +0100 | [diff] [blame] | 12 | -include $(TA_DEV_KIT_DIR)/host_include/conf.mk |
| 13 | |
| 14 | include $(CLEAR_VARS) |
| 15 | LOCAL_MODULE := xtest |
Zoltan Kuscsik | d3c5c2c | 2016-04-08 11:33:39 +0200 | [diff] [blame] | 16 | LOCAL_SHARED_LIBRARIES := libteec |
Jerome Forissier | f02a221 | 2015-10-29 14:33:35 +0100 | [diff] [blame] | 17 | |
| 18 | srcs := 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 Forissier | 555b137 | 2015-12-28 16:13:10 +0100 | [diff] [blame] | 25 | xtest_benchmark_1000.c \ |
Jerome Forissier | f02a221 | 2015-10-29 14:33:35 +0100 | [diff] [blame] | 26 | xtest_helpers.c \ |
| 27 | xtest_main.c \ |
| 28 | xtest_test.c \ |
| 29 | adbg/src/adbg_case.c \ |
| 30 | adbg/src/adbg_enum.c \ |
| 31 | adbg/src/adbg_expect.c \ |
| 32 | adbg/src/adbg_log.c \ |
| 33 | adbg/src/adbg_mts.c \ |
| 34 | adbg/src/adbg_run.c \ |
| 35 | adbg/src/adbg_util.c \ |
| 36 | adbg/src/r_list_genutil.c \ |
| 37 | adbg/src/security_utils_hex.c \ |
| 38 | adbg/src/security_utils_mem.c |
| 39 | |
| 40 | LOCAL_SRC_FILES := $(patsubst %,host/xtest/%,$(srcs)) |
| 41 | |
Zoltan Kuscsik | c8186b3 | 2016-04-08 11:35:17 +0200 | [diff] [blame] | 42 | LOCAL_C_INCLUDES += $(LOCAL_PATH)/host/xtest \ |
| 43 | $(LOCAL_PATH)/host/xtest/adbg/include\ |
Zoltan Kuscsik | 56cee0b | 2016-04-13 09:39:42 +0200 | [diff] [blame] | 44 | $(LOCAL_PATH)/host/xtest/xml/include \ |
Zoltan Kuscsik | c8186b3 | 2016-04-08 11:35:17 +0200 | [diff] [blame] | 45 | $(TA_DEV_KIT_DIR)/host_include \ |
| 46 | $(LOCAL_PATH)/ta/concurrent/include \ |
Jens Wiklander | 7067297 | 2016-04-06 00:01:45 +0200 | [diff] [blame] | 47 | $(LOCAL_PATH)/ta/concurrent_large/include \ |
Zoltan Kuscsik | c8186b3 | 2016-04-08 11:35:17 +0200 | [diff] [blame] | 48 | $(LOCAL_PATH)/ta/create_fail_test/include \ |
| 49 | $(LOCAL_PATH)/ta/crypt/include \ |
| 50 | $(LOCAL_PATH)/ta/enc_fs/include \ |
| 51 | $(LOCAL_PATH)/ta/os_test/include \ |
| 52 | $(LOCAL_PATH)/ta/rpc_test/include \ |
| 53 | $(LOCAL_PATH)/ta/sims/include \ |
| 54 | $(LOCAL_PATH)/ta/storage/include \ |
| 55 | $(LOCAL_PATH)/ta/storage_benchmark/include \ |
Jerome Forissier | f02a221 | 2015-10-29 14:33:35 +0100 | [diff] [blame] | 56 | |
| 57 | ifeq ($(CFG_ENC_FS),y) |
| 58 | LOCAL_CFLAGS += -DCFG_ENC_FS |
| 59 | endif |
Jerome Forissier | e288175 | 2016-05-18 11:36:38 +0200 | [diff] [blame] | 60 | ifeq ($(CFG_REE_FS),y) |
| 61 | LOCAL_CFLAGS += -DCFG_REE_FS |
Jerome Forissier | 6ef2e97 | 2016-01-22 17:51:13 +0100 | [diff] [blame] | 62 | endif |
Jerome Forissier | f02a221 | 2015-10-29 14:33:35 +0100 | [diff] [blame] | 63 | |
| 64 | LOCAL_CFLAGS += -DUSER_SPACE |
| 65 | LOCAL_CFLAGS += -DTA_DIR=\"/system/lib/optee_armtz\" |
| 66 | LOCAL_CFLAGS += -pthread |
| 67 | |
Yongqin Liu | 26b8aa8 | 2016-06-02 20:54:19 +0800 | [diff] [blame^] | 68 | ## target BUILD_OPTEE_OS is defined in the common ta build |
| 69 | ## mk file included before, and this BUILD_OPTEE_OS will |
| 70 | ## help to generate the header files under $(TA_DEV_KIT_DIR)/host_include |
| 71 | LOCAL_ADDITIONAL_DEPENDENCIES := BUILD_OPTEE_OS |
| 72 | |
Jerome Forissier | f02a221 | 2015-10-29 14:33:35 +0100 | [diff] [blame] | 73 | include $(BUILD_EXECUTABLE) |
Zoltan Kuscsik | 21758dc | 2016-04-13 09:41:02 +0200 | [diff] [blame] | 74 | |
| 75 | include $(LOCAL_PATH)/ta/Android.mk |