Jerome Forissier | f02a221 | 2015-10-29 14:33:35 +0100 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | |
| 3 | VERSION = $(shell git describe --always --dirty=-dev 2>/dev/null || echo Unknown) |
| 4 | OPTEE_CLIENT_PATH ?= $(LOCAL_PATH)/../optee_client |
| 5 | |
| 6 | include $(CLEAR_VARS) |
| 7 | LOCAL_MODULE := teec |
| 8 | LOCAL_SRC_FILES := $(OPTEE_CLIENT_PATH)/libs/$(TARGET_ARCH_ABI)/libteec.so |
| 9 | LOCAL_EXPORT_C_INCLUDES := $(OPTEE_CLIENT_PATH)/public |
| 10 | include $(PREBUILT_SHARED_LIBRARY) |
| 11 | |
| 12 | -include $(TA_DEV_KIT_DIR)/host_include/conf.mk |
| 13 | |
| 14 | include $(CLEAR_VARS) |
| 15 | LOCAL_MODULE := xtest |
| 16 | LOCAL_SHARED_LIBRARIES := teec |
| 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 | |
| 42 | LOCAL_C_INCLUDES += host/xtest |
| 43 | LOCAL_C_INCLUDES += host/xtest/adbg/include |
| 44 | LOCAL_C_INCLUDES += host/xtest/xml/include |
| 45 | LOCAL_C_INCLUDES += $(TA_DEV_KIT_DIR)/host_include |
| 46 | |
Jerome Forissier | 555b137 | 2015-12-28 16:13:10 +0100 | [diff] [blame] | 47 | LOCAL_C_INCLUDES += ta/concurrent/include |
Jerome Forissier | f02a221 | 2015-10-29 14:33:35 +0100 | [diff] [blame] | 48 | LOCAL_C_INCLUDES += ta/create_fail_test/include |
| 49 | LOCAL_C_INCLUDES += ta/crypt/include |
| 50 | LOCAL_C_INCLUDES += ta/enc_fs/include |
| 51 | LOCAL_C_INCLUDES += ta/os_test/include |
| 52 | LOCAL_C_INCLUDES += ta/rpc_test/include |
| 53 | LOCAL_C_INCLUDES += ta/sims/include |
| 54 | LOCAL_C_INCLUDES += ta/storage/include |
Jerome Forissier | 555b137 | 2015-12-28 16:13:10 +0100 | [diff] [blame] | 55 | LOCAL_C_INCLUDES += 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 | 6ef2e97 | 2016-01-22 17:51:13 +0100 | [diff] [blame^] | 60 | ifeq ($(CFG_RPMB_FS),y) |
| 61 | LOCAL_CFLAGS += -DCFG_RPMB_FS |
| 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 | |
| 68 | include $(BUILD_EXECUTABLE) |