1LOCAL_PATH := $(call my-dir)
2
3###################### optee-plugins ######################
4include $(CLEAR_VARS)
5LOCAL_CFLAGS += -DANDROID_BUILD
6LOCAL_CFLAGS += -Wall
7
8LOCAL_SRC_FILES += host/main.c
9
10LOCAL_C_INCLUDES := $(LOCAL_PATH)/ta/include
11
12LOCAL_SHARED_LIBRARIES := libteec
13LOCAL_MODULE := optee_example_plugins
14LOCAL_VENDOR_MODULE := true
15LOCAL_MODULE_TAGS := optional
16include $(BUILD_EXECUTABLE)
17
18###################### optee-plugins libs #################
19include $(CLEAR_VARS)
20
21PLUGIN_UUID = 96bcf744-4f72-4866-bf1d-8634fd9c65e5
22
23PLUGIN                  = $(PLUGIN_UUID).plugin
24PLUGIN_INCLUDES_DIR     = $(LOCAL_PATH)/syslog
25
26LOCAL_MODULE := $(PLUGIN)
27LOCAL_MODULE_RELATIVE_PATH := tee-supplicant/plugins
28LOCAL_VENDOR_MODULE := true
29# below is needed to locate optee_client exported headers
30LOCAL_SHARED_LIBRARIES := libteec
31
32LOCAL_SRC_FILES += syslog/syslog_plugin.c
33LOCAL_C_INCLUDES += $(PLUGIN_INCLUDES_DIR)
34
35LOCAL_MODULE_TAGS := optional
36
37# Build the 32-bit and 64-bit versions.
38LOCAL_MULTILIB := both
39LOCAL_MODULE_TARGET_ARCH := arm arm64
40
41include $(BUILD_SHARED_LIBRARY)
42
43###################### TA #################################
44include $(LOCAL_PATH)/ta/Android.mk
45