xref: /openbmc/linux/drivers/gpu/drm/amd/amdkfd/Makefile (revision 25c2e591)
1#
2# Copyright 2017 Advanced Micro Devices, Inc.
3#
4# Permission is hereby granted, free of charge, to any person obtaining a
5# copy of this software and associated documentation files (the "Software"),
6# to deal in the Software without restriction, including without limitation
7# the rights to use, copy, modify, merge, publish, distribute, sublicense,
8# and/or sell copies of the Software, and to permit persons to whom the
9# Software is furnished to do so, subject to the following conditions:
10#
11# The above copyright notice and this permission notice shall be included in
12# all copies or substantial portions of the Software.
13#
14# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
17# THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
18# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20# OTHER DEALINGS IN THE SOFTWARE.
21#
22#
23# Makefile for Heterogenous System Architecture support for AMD GPU devices
24#
25
26AMDKFD_FILES	:= $(AMDKFD_PATH)/kfd_module.o \
27		$(AMDKFD_PATH)/kfd_device.o \
28		$(AMDKFD_PATH)/kfd_chardev.o \
29		$(AMDKFD_PATH)/kfd_topology.o \
30		$(AMDKFD_PATH)/kfd_pasid.o \
31		$(AMDKFD_PATH)/kfd_doorbell.o \
32		$(AMDKFD_PATH)/kfd_flat_memory.o \
33		$(AMDKFD_PATH)/kfd_process.o \
34		$(AMDKFD_PATH)/kfd_queue.o \
35		$(AMDKFD_PATH)/kfd_mqd_manager.o \
36		$(AMDKFD_PATH)/kfd_mqd_manager_cik.o \
37		$(AMDKFD_PATH)/kfd_mqd_manager_vi.o \
38		$(AMDKFD_PATH)/kfd_mqd_manager_v9.o \
39		$(AMDKFD_PATH)/kfd_mqd_manager_v10.o \
40		$(AMDKFD_PATH)/kfd_mqd_manager_v11.o \
41		$(AMDKFD_PATH)/kfd_kernel_queue.o \
42		$(AMDKFD_PATH)/kfd_packet_manager.o \
43		$(AMDKFD_PATH)/kfd_packet_manager_vi.o \
44		$(AMDKFD_PATH)/kfd_packet_manager_v9.o \
45		$(AMDKFD_PATH)/kfd_process_queue_manager.o \
46		$(AMDKFD_PATH)/kfd_device_queue_manager.o \
47		$(AMDKFD_PATH)/kfd_device_queue_manager_cik.o \
48		$(AMDKFD_PATH)/kfd_device_queue_manager_vi.o \
49		$(AMDKFD_PATH)/kfd_device_queue_manager_v9.o \
50		$(AMDKFD_PATH)/kfd_device_queue_manager_v10.o \
51		$(AMDKFD_PATH)/kfd_device_queue_manager_v11.o \
52		$(AMDKFD_PATH)/kfd_interrupt.o \
53		$(AMDKFD_PATH)/kfd_events.o \
54		$(AMDKFD_PATH)/cik_event_interrupt.o \
55		$(AMDKFD_PATH)/kfd_int_process_v9.o \
56		$(AMDKFD_PATH)/kfd_int_process_v11.o \
57		$(AMDKFD_PATH)/kfd_smi_events.o \
58		$(AMDKFD_PATH)/kfd_crat.o
59
60ifneq ($(CONFIG_AMD_IOMMU_V2),)
61AMDKFD_FILES += $(AMDKFD_PATH)/kfd_iommu.o
62endif
63
64ifneq ($(CONFIG_DEBUG_FS),)
65AMDKFD_FILES += $(AMDKFD_PATH)/kfd_debugfs.o
66endif
67
68ifneq ($(CONFIG_HSA_AMD_SVM),)
69AMDKFD_FILES += $(AMDKFD_PATH)/kfd_svm.o \
70		$(AMDKFD_PATH)/kfd_migrate.o
71endif
72