#=============================================================================== # export variable #=============================================================================== LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := libdrv_aicpu LOCAL_MULTILIB := 64 LOCAL_BUILD_STATIC := ture LOCAL_SRC_FILES := aicpu_api.c USR_DIR:= vendor/huanglong/uapi NPU_USR_INC_DIR = vendor/huanglong/uapi/npu/source/include AICPU_DIR = $(USR_DIR)/npu/source/aicpu PLATFORM_DIR = vendor/platform/ BUILD_DIR := $(SDK_DIR)/build DRV_DIR ?= vendor/huanglong/linux/drv #=============================================================================== # local variable #=============================================================================== LOCAL_CFLAGS := -I$(USR_DIR)\ -Ivendor/huanglong/linux/include/generic \ -Ivendor/platform/secure_c/include \ -I$(DRV_DIR)/include \ -I$(DRV_DIR)/npu/src/include \ -I$(SDK_DIR)/source/component/boringssl/include \ -I$(PLATFORM_DIR)/secure_c/include \ -I$(USR_DIR)/npu/source/device/devmm \ -I$(USR_DIR)/npu/source/device/devmm/dev_inc \ -I$(USR_DIR)/include \ -I$(AICPU_DIR)/ \ -I$(NPU_USR_INC_DIR)/ \ -I$(NPU_USR_INC_DIR)/drv \ -I$(NPU_USR_INC_DIR)/acl LOCAL_SHARED_LIBRARIES := libdrvdevdrv \ libuapi_securec \ libslog include $(BUILD_LINUX_LIBRARY)