You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
2.1 KiB
67 lines
2.1 KiB
4 months ago
|
#===============================================================================
|
||
|
# export variable
|
||
|
#===============================================================================
|
||
|
LOCAL_PATH := $(call my-dir)
|
||
|
|
||
|
include $(CLEAR_VARS)
|
||
|
LOCAL_MODULE := libdrvdevdrv
|
||
|
|
||
|
LOCAL_MULTILIB := 64
|
||
|
LOCAL_BUILD_STATIC := ture
|
||
|
|
||
|
LOCAL_SRC_FILES := devdrv_aicpufw.c \
|
||
|
devdrv_command.c \
|
||
|
devdrv_fd.c \
|
||
|
devdrv_id.c \
|
||
|
devdrv_manager.c \
|
||
|
devdrv_mm.c \
|
||
|
devdrv_mpi.c \
|
||
|
devdrv_stub.c \
|
||
|
devmm/devmm_api_impl.c \
|
||
|
devmm/devmm_virt_interface.c \
|
||
|
devmm/devmm_virt_page.c \
|
||
|
devmm/devmm_dfx.c \
|
||
|
devmm/devmm_mpi.c \
|
||
|
devmm/product/stb/devmm_hal_ion.c
|
||
|
|
||
|
#SDK_DIR := $(shell cd $(CURDIR)/../../../../../../ && /bin/pwd)
|
||
|
USR_DIR:= vendor/huanglong/uapi
|
||
|
NPU_USR_INC_DIR = $(USR_DIR)/npu/source/include
|
||
|
AICPU_DIR = $(USR_DIR)/npu/source/aicpu
|
||
|
PLATFORM_DIR ?= vendor/platform/
|
||
|
DRV_DIR ?= vendor/huanglong/linux/drv
|
||
|
|
||
|
|
||
|
NPU_DEVICE_DIR = $(USR_DIR)/npu/source/device
|
||
|
NPU_DEVMM_DIR = $(USR_DIR)/npu/source/device/devmm
|
||
|
|
||
|
#===============================================================================
|
||
|
# 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$(DRV_DIR)/npu/src/include/arch/$(SOCARCH) \
|
||
|
-I$(USR_DIR)/include \
|
||
|
-I$(PLATFORM_DIR)/secure_c/include \
|
||
|
-I$(USR_DIR)/memory/include \
|
||
|
-I$(NPU_DEVICE_DIR)/ \
|
||
|
-I$(NPU_USR_INC_DIR)/drv \
|
||
|
-I$(NPU_DEVICE_DIR)/../../include \
|
||
|
-I$(NPU_DEVICE_DIR)/../include \
|
||
|
-I$(NPU_DEVMM_DIR)/ \
|
||
|
-I$(NPU_DEVMM_DIR)/dev_inc \
|
||
|
-I$(PRODUCT_DIR)/ \
|
||
|
-I$(NPU_DEVICE_DIR)/product/stb/arch/
|
||
|
|
||
|
LOCAL_LDFLAGS := -lpthread
|
||
|
|
||
|
LOCAL_SHARED_LIBRARIES := libuapi_securec \
|
||
|
libuapi_memory \
|
||
|
libslog
|
||
|
|
||
|
include $(BUILD_LINUX_LIBRARY)
|
||
|
|