Makefile (c74a7469f97c0f40b46e82ee979f9fb1bb6e847c) | Makefile (04d5e2765802241b54ee93d1e655123c39fa7385) |
---|---|
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 unchanged lines hidden (view full) --- 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 | 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 unchanged lines hidden (view full) --- 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 |
26ccflags-y := -Idrivers/gpu/drm/amd/include/ \ 27 -Idrivers/gpu/drm/amd/include/asic_reg | 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_kernel_queue.o \ 40 $(AMDKFD_PATH)/kfd_kernel_queue_cik.o \ 41 $(AMDKFD_PATH)/kfd_kernel_queue_vi.o \ 42 $(AMDKFD_PATH)/kfd_kernel_queue_v9.o \ 43 $(AMDKFD_PATH)/kfd_packet_manager.o \ 44 $(AMDKFD_PATH)/kfd_process_queue_manager.o \ 45 $(AMDKFD_PATH)/kfd_device_queue_manager.o \ 46 $(AMDKFD_PATH)/kfd_device_queue_manager_cik.o \ 47 $(AMDKFD_PATH)/kfd_device_queue_manager_vi.o \ 48 $(AMDKFD_PATH)/kfd_device_queue_manager_v9.o \ 49 $(AMDKFD_PATH)/kfd_interrupt.o \ 50 $(AMDKFD_PATH)/kfd_events.o \ 51 $(AMDKFD_PATH)/cik_event_interrupt.o \ 52 $(AMDKFD_PATH)/kfd_int_process_v9.o \ 53 $(AMDKFD_PATH)/kfd_dbgdev.o \ 54 $(AMDKFD_PATH)/kfd_dbgmgr.o \ 55 $(AMDKFD_PATH)/kfd_crat.o |
28 | 56 |
29amdkfd-y := kfd_module.o kfd_device.o kfd_chardev.o kfd_topology.o \ 30 kfd_pasid.o kfd_doorbell.o kfd_flat_memory.o \ 31 kfd_process.o kfd_queue.o kfd_mqd_manager.o \ 32 kfd_mqd_manager_cik.o kfd_mqd_manager_vi.o \ 33 kfd_mqd_manager_v9.o \ 34 kfd_kernel_queue.o kfd_kernel_queue_cik.o \ 35 kfd_kernel_queue_vi.o kfd_kernel_queue_v9.o \ 36 kfd_packet_manager.o kfd_process_queue_manager.o \ 37 kfd_device_queue_manager.o kfd_device_queue_manager_cik.o \ 38 kfd_device_queue_manager_vi.o kfd_device_queue_manager_v9.o \ 39 kfd_interrupt.o kfd_events.o cik_event_interrupt.o \ 40 kfd_int_process_v9.o kfd_dbgdev.o kfd_dbgmgr.o kfd_crat.o 41 | |
42ifneq ($(CONFIG_AMD_IOMMU_V2),) | 57ifneq ($(CONFIG_AMD_IOMMU_V2),) |
43amdkfd-y += kfd_iommu.o | 58AMDKFD_FILES += $(AMDKFD_PATH)/kfd_iommu.o |
44endif 45 | 59endif 60 |
46amdkfd-$(CONFIG_DEBUG_FS) += kfd_debugfs.o 47 48obj-$(CONFIG_HSA_AMD) += amdkfd.o | 61ifneq ($(CONFIG_DEBUG_FS),) 62AMDKFD_FILES += $(AMDKFD_PATH)/kfd_debugfs.o 63endif |