2 # Makefile for the drm device driver. This driver provides support for the
3 # Direct Rendering Infrastructure (DRI) in XFree86 4.1.0 and higher.
5 FULL_AMD_PATH
=$(src
)/..
7 ccflags-y
:= -Iinclude
/drm
-I
$(FULL_AMD_PATH
)/include/asic_reg \
8 -I
$(FULL_AMD_PATH
)/include \
9 -I
$(FULL_AMD_PATH
)/amdgpu \
10 -I
$(FULL_AMD_PATH
)/scheduler \
11 -I
$(FULL_AMD_PATH
)/powerplay
/inc \
12 -I
$(FULL_AMD_PATH
)/acp
/include
14 amdgpu-y
:= amdgpu_drv.o
17 amdgpu-y
+= amdgpu_device.o amdgpu_kms.o \
18 amdgpu_atombios.o atombios_crtc.o amdgpu_connectors.o \
19 atom.o amdgpu_fence.o amdgpu_ttm.o amdgpu_object.o amdgpu_gart.o \
20 amdgpu_encoders.o amdgpu_display.o amdgpu_i2c.o \
21 amdgpu_fb.o amdgpu_gem.o amdgpu_ring.o \
22 amdgpu_cs.o amdgpu_bios.o amdgpu_benchmark.o amdgpu_test.o \
23 amdgpu_pm.o atombios_dp.o amdgpu_afmt.o amdgpu_trace_points.o \
24 atombios_encoders.o amdgpu_sa.o atombios_i2c.o \
25 amdgpu_prime.o amdgpu_vm.o amdgpu_ib.o amdgpu_pll.o \
26 amdgpu_ucode.o amdgpu_bo_list.o amdgpu_ctx.o amdgpu_sync.o
28 # add asic specific block
29 amdgpu-
$(CONFIG_DRM_AMDGPU_CIK
)+= cik.o cik_ih.o kv_smc.o kv_dpm.o \
30 ci_smc.o ci_dpm.o dce_v8_0.o gfx_v7_0.o cik_sdma.o uvd_v4_2.o vce_v2_0.o \
31 amdgpu_amdkfd_gfx_v7.o
54 tonga_smc.o tonga_dpm.o \
55 fiji_smc.o fiji_dpm.o \
56 iceland_smc.o iceland_dpm.o
84 # add amdkfd interfaces
87 amdgpu_amdkfd_gfx_v8.o
90 amdgpu-y
+= amdgpu_cgs.o
94 ..
/scheduler
/gpu_scheduler.o \
95 ..
/scheduler
/sched_fence.o \
99 ifneq ($(CONFIG_DRM_AMD_ACP
),)
100 amdgpu-y
+= amdgpu_acp.o
103 include $(FULL_AMD_PATH
)/acp
/Makefile
105 amdgpu-y
+= $(AMD_ACP_FILES
)
108 amdgpu-
$(CONFIG_COMPAT
) += amdgpu_ioc32.o
109 amdgpu-
$(CONFIG_VGA_SWITCHEROO
) += amdgpu_atpx_handler.o
110 amdgpu-
$(CONFIG_ACPI
) += amdgpu_acpi.o
111 amdgpu-
$(CONFIG_MMU_NOTIFIER
) += amdgpu_mn.o
113 ifneq ($(CONFIG_DRM_AMD_POWERPLAY
),)
115 include $(FULL_AMD_PATH
)/powerplay
/Makefile
117 amdgpu-y
+= $(AMD_POWERPLAY_FILES
)
121 obj-
$(CONFIG_DRM_AMDGPU
)+= amdgpu.o
123 CFLAGS_amdgpu_trace_points.o
:= -I
$(src
)