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.
45 lines
1.3 KiB
45 lines
1.3 KiB
4 months ago
|
#===============================================================================
|
||
|
# 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)
|
||
|
|