Commit 70b2f993 authored by Oded Gabbay's avatar Oded Gabbay
Browse files

habanalabs: create common folder



For internal needs of our CI we need to move all the common code into a
common folder instead of putting them in the root folder of the driver.

Same applies to the common header files under include/

Signed-off-by: default avatarOded Gabbay <oded.gabbay@gmail.com>
Reviewed-by: default avatarOmer Shpigelman <oshpigelman@habana.ai>
parent a9855a2d
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -3,16 +3,15 @@
# Makefile for HabanaLabs AI accelerators driver
#

obj-m	:= habanalabs.o
obj-$(CONFIG_HABANA_AI) := habanalabs.o

habanalabs-y := habanalabs_drv.o device.o context.o asid.o habanalabs_ioctl.o \
		command_buffer.o hw_queue.o irq.o sysfs.o hwmon.o memory.o \
		command_submission.o mmu.o firmware_if.o pci.o

habanalabs-$(CONFIG_DEBUG_FS) += debugfs.o
include $(src)/common/Makefile
habanalabs-y += $(HL_COMMON_FILES)

include $(src)/goya/Makefile
habanalabs-y += $(HL_GOYA_FILES)

include $(src)/gaudi/Makefile
habanalabs-y += $(HL_GAUDI_FILES)

habanalabs-$(CONFIG_DEBUG_FS) += common/debugfs.o
+9 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0-only
subdir-ccflags-y += -I$(src)/common

HL_COMMON_FILES := common/habanalabs_drv.o common/device.o common/context.o \
		common/asid.o common/habanalabs_ioctl.o \
		common/command_buffer.o common/hw_queue.o common/irq.o \
		common/sysfs.o common/hwmon.o common/memory.o \
		common/command_submission.o common/mmu.o common/firmware_if.o \
		common/pci.o
Loading