kernel_samsung_a53x/drivers/vision3/Makefile
2024-06-15 16:02:09 -03:00

170 lines
5.7 KiB
Makefile
Executable file

obj-$(CONFIG_EXYNOS_DSP) += dsp/
#
# Makefile for the npu device driver
#
ccflags-y += -I$(srctree)/drivers/vision3/vision-core/include -Wformat
ccflags-y += -I$(srctree)/drivers/vision3/npu/core -Wformat
ccflags-y += -I$(srctree)/drivers/vision3/npu/core/include -Wformat
ifeq ($(CONFIG_NPU_HARDWARE),y)
ccflags-y += -I$(srctree)/drivers/vision3/npu/core/interface/hardware
else # CONFIG NPU_LOOPBACK
ccflags-y += -I$(srctree)/drivers/vision/npu/core/interface/loopback
endif
ifeq ($(CONFIG_NPU_STM),y)
ccflags-y += -I$(srctree)/drivers/hwtracing/coresight
endif
ifeq ($(CONFIG_NPU_USE_MBR),y)
ccflags-y += -I$(srctree)/drivers/vision3/dsp -Wformat
endif
ifeq ($(CONFIG_NPU_BUILD_BUILTIN),y)
obj-$(CONFIG_VISION_CORE) += vision-core/vision-dev.o
obj-$(CONFIG_VISION_CORE) += vision-core/vision-compat-ioctl32.o
obj-$(CONFIG_VISION_CORE) += vision-core/vision-ioctl.o
obj-$(CONFIG_VISION_CORE) += vision-core/vision-buffer.o
obj-y += npu/core/npu-util-autosleepthr.o
obj-y += npu/core/npu-util-liststatemgr.o
obj-y += npu/core/npu-util-msgidgen.o
obj-y += npu/core/npu-util-regs.o
obj-y += npu/core/npu-util-llq.o
obj-y += npu/core/npu-util-common.o
obj-y += npu/core/npu-llc.o
obj-y += npu/core/npu-log.o
obj-y += npu/core/npu-ver.o
obj-y += npu/core/npu-debug.o
obj-y += npu/core/npu-device.o
obj-y += npu/core/npu-core.o
obj-y += npu/core/npu-clock.o
obj-y += npu/core/npu-vertex.o
obj-y += npu/core/npu-binary.o
obj-y += npu/core/npu-queue.o
obj-y += npu/core/npu-qos.o
obj-y += npu/core/npu-system.o
obj-y += npu/core/npu-memory.o
obj-y += npu/core/npu-protodrv.o
obj-y += npu/core/npu-session.o
obj-y += npu/core/npu-fw-test-handler.o
obj-y += npu/core/npu-queue.o
obj-y += npu/core/npu-if-session-protodrv.o
obj-y += npu/core/npu-if-protodrv-mbox2.o
obj-y += npu/core/npu-sessionmgr.o
obj-y += npu/core/npu-config.o
obj-$(CONFIG_NPU_GOLDEN_MATCH) += npu/core/npu-golden.o
obj-$(CONFIG_NPU_GOLDEN_MATCH) += npu/core/npu-util-statekeeper.o
obj-$(CONFIG_NPU_GOLDEN_MATCH) += npu/core/npu-util-comparator.o
obj-$(CONFIG_FIRMWARE_SRAM_DUMP_DEBUGFS) += npu/core/npu-util-memdump.o
obj-$(CONFIG_NPU_SCHEDULER_GOVERNOR) += npu/core/npu-scheduler.o\
npu/core/ npu-scheduler-governor.o
obj-$(CONFIG_NPU_GOVERNOR_SIMPLE_EXYNOS) += npu/core/npu-scheduler-governor-simple-exynos.o
obj-$(CONFIG_NPU_GOVERNOR_EXYNOS_INTERACTIVE) += npu/core/npu-scheduler-governor-exynos-interactive.o
obj-$(CONFIG_NPU_GOVERNOR_USERSPACE) += npu/core/npu-scheduler-governor-userspace.o
obj-$(CONFIG_NPU_USE_SPROFILER) += npu/core/npu-profile.o
obj-$(CONFIG_EXYNOS_NPU_PUBLISH_NPU_BUILD_VER) += npu/core/generated/npu-ver-info.o
ifeq ($(CONFIG_NPU_INTERFACE),y)
obj-$(CONFIG_NPU_HARDWARE) += npu/core/interface/npu-interface.o
obj-$(CONFIG_NPU_HARDWARE) += npu/core/interface/mailbox_ipc.o
obj-$(CONFIG_NPU_LOOPBACK) += npu/core/loopback/npu-interface.o
obj-$(CONFIG_NPU_LOOPBACK) += npu/core/loopback/mailbox_ipc.o
endif
obj-$(CONFIG_NPU_STM) += npu/core/npu-stm.o
else
npu-objs += vision-core/vision-dev.o
ifeq ($(CONFIG_NPU_COMPAT_IOCTL), y)
npu-objs += vision-core/vision-compat-ioctl32.o
endif
npu-objs += vision-core/vision-ioctl.o
npu-objs += vision-core/vision-buffer.o
npu-objs += vision-core/vision-log.o
npu-objs += npu/core/npu-util-autosleepthr.o
npu-objs += npu/core/npu-util-liststatemgr.o
npu-objs += npu/core/npu-util-msgidgen.o
npu-objs += npu/core/npu-util-regs.o
npu-objs += npu/core/npu-util-llq.o
npu-objs += npu/core/npu-core.o
npu-objs += npu/core/npu-clock.o
npu-objs += npu/core/npu-util-common.o
npu-objs += npu/core/npu-llc.o
npu-objs += npu/core/npu-log.o
npu-objs += npu/core/npu-ver.o
npu-objs += npu/core/npu-debug.o
npu-objs += npu/core/npu-device.o
npu-objs += npu/core/npu-vertex.o
npu-objs += npu/core/npu-binary.o
npu-objs += npu/core/npu-queue.o
npu-objs += npu/core/npu-qos.o
npu-objs += npu/core/npu-system.o
npu-objs += npu/core/npu-memory.o
npu-objs += npu/core/npu-protodrv.o
npu-objs += npu/core/npu-session.o
npu-objs += npu/core/npu-fw-test-handler.o
npu-objs += npu/core/npu-queue.o
npu-objs += npu/core/npu-if-session-protodrv.o
npu-objs += npu/core/npu-if-protodrv-mbox2.o
npu-objs += npu/core/npu-sessionmgr.o
npu-objs += npu/core/npu-config.o
ifeq ($(CONFIG_NPU_INTERFACE),y)
ifeq ($(CONFIG_NPU_HARDWARE),y)
npu-objs += npu/core/interface/hardware/npu-interface.o
npu-objs += npu/core/interface/hardware/mailbox_ipc.o
else # CONFIG_NPU_LOOPBACK
npu-objs += npu/core/interface/loopback/npu-interface.o
npu-objs += npu/core/interface/loopback/mailbox_ipc.o
endif
endif
ifeq ($(CONFIG_NPU_GOLDEN_MATCH),y)
npu-objs += npu/core/npu-golden.o
npu-objs += npu/core/npu-util-statekeeper.o
npu-objs += npu/core/npu-util-comparator.o
endif
ifeq ($(CONFIG_FIRMWARE_SRAM_DUMP_DEBUGFS),y)
npu-objs += npu/core/npu-util-memdump.o
endif
ifeq ($(CONFIG_NPU_SCHEDULER_GOVERNOR),y)
npu-objs += npu/core/npu-scheduler.o
npu-objs += npu/core/npu-scheduler-governor.o
ifeq ($(CONFIG_NPU_GOVERNOR_SIMPLE_EXYNOS),y)
npu-objs += npu/core/npu-scheduler-governor-simple-exynos.o
endif
ifeq ($(CONFIG_NPU_GOVERNOR_EXYNOS_INTERACTIVE),y)
npu-objs += npu/core/npu-scheduler-governor-exynos-interactive.o
endif
ifeq ($(CONFIG_NPU_GOVERNOR_USERSPACE),y)
npu-objs += npu/core/npu-scheduler-governor-userspace.o
endif
endif
ifeq ($(CONFIG_NPU_USE_SPROFILER),y)
npu-objs += npu/core/npu-profile.o
endif
ifeq ($(CONFIG_EXYNOS_NPU_PUBLISH_NPU_BUILD_VER),y)
npu-objs += npu/core/generated/npu-ver-info.o
endif
ifeq ($(CONFIG_NPU_STM),y)
npu-objs += npu/core/npu-stm.o
endif
obj-$(CONFIG_EXYNOS_NPU) += npu.o
endif