-
Notifications
You must be signed in to change notification settings - Fork 105
fix s3 problems and npu driver build failure #1415
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,93 +1,17 @@ | ||||||||||||||||||||||
| # SPDX-License-Identifier: GPL-2.0 | ||||||||||||||||||||||
| # Copyright (C) 2024 Arm Technology (China) Co. Ltd. | ||||||||||||||||||||||
| # | ||||||||||||||||||||||
| # Makefile for Cix Technology NPU (Zhouyi) Driver | ||||||||||||||||||||||
| # | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| COMPASS_DRV_BTENVAR_KMD_VERSION := 5.11.0 | ||||||||||||||||||||||
| # COMPASS_DRV_BTENVAR_KPATH=${PATH_LINUX} | ||||||||||||||||||||||
| BUILD_AIPU_VERSION_KMD := BUILD_ZHOUYI_V3 | ||||||||||||||||||||||
| BUILD_TARGET_PLATFORM_KMD := BUILD_PLATFORM_SKY1 | ||||||||||||||||||||||
| BUILD_NPU_DEVFREQ := y | ||||||||||||||||||||||
| obj-$(CONFIG_ARMCHINA_NPU) += cix-aipu.o | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| MODULE_NAME := aipu | ||||||||||||||||||||||
| SRC_DIR := . | ||||||||||||||||||||||
| EXTRA_CFLAGS += -DKMD_VERSION=\"$(COMPASS_DRV_BTENVAR_KMD_VERSION)\" \ | ||||||||||||||||||||||
| -I$(PWD)/armchina-npu/ -I$(PWD)/armchina-npu/include -I$(PWD)/armchina-npu/zhouyi \ | ||||||||||||||||||||||
| -D$(BUILD_AIPU_VERSION_KMD) | ||||||||||||||||||||||
| cix-aipu-y := armchina-npu/aipu.o armchina-npu/aipu_common.o armchina-npu/aipu_io.o armchina-npu/aipu_irq.o \ | ||||||||||||||||||||||
| armchina-npu/aipu_job_manager.o armchina-npu/aipu_mm.o armchina-npu/aipu_dma_buf.o armchina-npu/aipu_priv.o \ | ||||||||||||||||||||||
| armchina-npu/aipu_tcb.o armchina-npu/zhouyi/zhouyi.o armchina-npu/zhouyi/v3.o armchina-npu/zhouyi/v3_priv.o armchina-npu/sky1/sky1.o | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| COMM_OBJ := $(SRC_DIR)/armchina-npu/aipu.o \ | ||||||||||||||||||||||
| $(SRC_DIR)/armchina-npu/aipu_common.o \ | ||||||||||||||||||||||
| $(SRC_DIR)/armchina-npu/aipu_io.o \ | ||||||||||||||||||||||
| $(SRC_DIR)/armchina-npu/aipu_irq.o \ | ||||||||||||||||||||||
| $(SRC_DIR)/armchina-npu/aipu_job_manager.o \ | ||||||||||||||||||||||
| $(SRC_DIR)/armchina-npu/aipu_mm.o \ | ||||||||||||||||||||||
| $(SRC_DIR)/armchina-npu/aipu_dma_buf.o \ | ||||||||||||||||||||||
| $(SRC_DIR)/armchina-npu/aipu_priv.o \ | ||||||||||||||||||||||
| $(SRC_DIR)/armchina-npu/aipu_tcb.o \ | ||||||||||||||||||||||
| $(SRC_DIR)/armchina-npu/zhouyi/zhouyi.o | ||||||||||||||||||||||
| ccflags-y += -I$(src)/armchina-npu/include \ | ||||||||||||||||||||||
| -I$(src)/armchina-npu/zhouyi \ | ||||||||||||||||||||||
| -I$(src)/armchina-npu/sky1 \ | ||||||||||||||||||||||
| -I$(src) \ | ||||||||||||||||||||||
| -I$(src)/armchina-npu | ||||||||||||||||||||||
|
Comment on lines
+12
to
+16
|
||||||||||||||||||||||
| ccflags-y += -I$(src)/armchina-npu/include \ | |
| -I$(src)/armchina-npu/zhouyi \ | |
| -I$(src)/armchina-npu/sky1 \ | |
| -I$(src) \ | |
| -I$(src)/armchina-npu | |
| ccflags-y += -I$(srctree)/$(src)/armchina-npu/include \ | |
| -I$(srctree)/$(src)/armchina-npu/zhouyi \ | |
| -I$(srctree)/$(src)/armchina-npu/sky1 \ | |
| -I$(srctree)/$(src) \ | |
| -I$(srctree)/$(src)/armchina-npu |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The object files are hard-coded to only include v3.o and v3_priv.o from the zhouyi subdirectory and sky1.o from the sky1 subdirectory. However, the Kconfig file defines multiple architecture options (V1, V2, V3, V3_1) and multiple SoC options (default, R329, SKY1). The armchina-npu subdirectory Makefiles use CONFIG_ARMCHINA_NPU_ARCH_* and CONFIG_SKY1 to conditionally include the correct object files. This hard-coded list should either use the same Kconfig-based conditional compilation pattern, or the Kconfig options should be removed if only V3 and SKY1 are supported.