Hi All
I want to use libteec.so to make SHARED_LIBRARIES
I modify the Android.mk of Helloword like this
LOCAL_PATH := $(call my-dir)
OPTEE_CLIENT_EXPORT = $(LOCAL_PATH)/…/…/optee_client/out/export
include $(CLEAR_VARS)
LOCAL_CFLAGS += -DANDROID_BUILD
LOCAL_CFLAGS += -Wall
LOCAL_SRC_FILES += host/main.c
LOCAL_C_INCLUDES := $(LOCAL_PATH)/ta/include
$(OPTEE_CLIENT_EXPORT)/include \
LOCAL_SHARED_LIBRARIES := libteec
LOCAL_MODULE := optee_example_hello_world
LOCAL_VENDOR_MODULE := true
LOCAL_MODULE_TAGS := optional
include $(BUILD_SHARED_LIBRARY) ==> include $(BUILD_EXECUTABLE) is OK
but BUILD_SHARED_LIBRARY is fail
include $(LOCAL_PATH)/ta/Android.mk
but I always get the following error.
ninja: error: ‘out/target/product/hikey960/obj_arm/lib/libteec.so.toc’, needed by ‘out/target/product/hikey960/obj_arm/SHARED_LIBRARIES/libmhjni_intermediates/LINKED/libmhjni.so’, missing and no known rule to make it
12:47:18 ninja failed with: exit status 1