Makefile 2.9 KB
Newer Older
1 2 3 4
#
# Makefile for the drm device driver.  This driver provides support for the
# Direct Rendering Infrastructure (DRI) in XFree86 4.1.0 and higher.

5
subdir-ccflags-$(CONFIG_DRM_I915_WERROR) := -Werror
6 7
subdir-ccflags-y += \
	$(call as-instr,movntdqa (%eax)$(comma)%xmm0,-DCONFIG_AS_MOVNTDQA)
8

D
Daniel Vetter 已提交
9 10 11 12
# Please keep these build lists sorted!

# core driver code
i915-y := i915_drv.o \
D
Daniel Vetter 已提交
13
	  i915_irq.o \
14
	  i915_memcpy.o \
15
	  i915_mm.o \
D
Daniel Vetter 已提交
16
	  i915_params.o \
17
	  i915_pci.o \
18
          i915_suspend.o \
19
	  i915_sw_fence.o \
D
Daniel Vetter 已提交
20
	  i915_sysfs.o \
D
Daniel Vetter 已提交
21
	  intel_csr.o \
22
	  intel_device_info.o \
23
	  intel_pm.o \
D
Daniel Vetter 已提交
24
	  intel_runtime_pm.o
25

D
Daniel Vetter 已提交
26
i915-$(CONFIG_COMPAT)   += i915_ioc32.o
27
i915-$(CONFIG_DEBUG_FS) += i915_debugfs.o intel_pipe_crc.o
D
Daniel Vetter 已提交
28 29 30

# GEM code
i915-y += i915_cmd_parser.o \
31
	  i915_gem_batch_pool.o \
32
	  i915_gem_context.o \
D
Daniel Vetter 已提交
33
	  i915_gem_dmabuf.o \
34
	  i915_gem_evict.o \
35
	  i915_gem_execbuffer.o \
J
Joonas Lahtinen 已提交
36
	  i915_gem_fence_reg.o \
37
	  i915_gem_gtt.o \
38
	  i915_gem_internal.o \
D
Daniel Vetter 已提交
39
	  i915_gem.o \
D
Daniel Vetter 已提交
40
	  i915_gem_render_state.o \
41
	  i915_gem_request.o \
42
	  i915_gem_shrinker.o \
43
	  i915_gem_stolen.o \
J
Jesse Barnes 已提交
44
	  i915_gem_tiling.o \
45
	  i915_gem_timeline.o \
46
	  i915_gem_userptr.o \
C
Chris Wilson 已提交
47
	  i915_trace_points.o \
J
Joonas Lahtinen 已提交
48
	  i915_vma.o \
49
	  intel_breadcrumbs.o \
50
	  intel_engine_cs.o \
51
	  intel_hangcheck.o \
52
	  intel_lrc.o \
53
	  intel_mocs.o \
D
Daniel Vetter 已提交
54 55 56
	  intel_ringbuffer.o \
	  intel_uncore.o

57
# general-purpose microcontroller (GuC) support
58
i915-y += intel_uc.o \
59
	  intel_guc_log.o \
60
	  intel_guc_loader.o \
61
	  i915_guc_submission.o
62

63 64 65
# autogenerated null render state
i915-y += intel_renderstate_gen6.o \
	  intel_renderstate_gen7.o \
66 67
	  intel_renderstate_gen8.o \
	  intel_renderstate_gen9.o
68

D
Daniel Vetter 已提交
69
# modesetting core code
70
i915-y += intel_audio.o \
D
Daniel Vetter 已提交
71 72
	  intel_atomic.o \
	  intel_atomic_plane.o \
73
	  intel_bios.o \
74
	  intel_color.o \
J
Jesse Barnes 已提交
75
	  intel_display.o \
76
	  intel_dpio_phy.o \
77
	  intel_dpll_mgr.o \
78
	  intel_fbc.o \
79
	  intel_fifo_underrun.o \
80
	  intel_frontbuffer.o \
D
Daniel Vetter 已提交
81
	  intel_hotplug.o \
J
Jesse Barnes 已提交
82
	  intel_modes.o \
D
Daniel Vetter 已提交
83
	  intel_overlay.o \
R
Rodrigo Vivi 已提交
84
	  intel_psr.o \
85
	  intel_sideband.o \
D
Daniel Vetter 已提交
86
	  intel_sprite.o
87
i915-$(CONFIG_ACPI)		+= intel_acpi.o intel_opregion.o
88
i915-$(CONFIG_DRM_FBDEV_EMULATION)	+= intel_fbdev.o
D
Daniel Vetter 已提交
89 90 91

# modesetting output/encoder code
i915-y += dvo_ch7017.o \
J
Jesse Barnes 已提交
92 93
	  dvo_ch7xxx.o \
	  dvo_ivch.o \
94
	  dvo_ns2501.o \
D
Daniel Vetter 已提交
95 96 97 98
	  dvo_sil164.o \
	  dvo_tfp410.o \
	  intel_crt.o \
	  intel_ddi.o \
99
	  intel_dp_aux_backlight.o \
100
	  intel_dp_link_training.o \
101
	  intel_dp_mst.o \
D
Daniel Vetter 已提交
102
	  intel_dp.o \
D
Daniel Vetter 已提交
103
	  intel_dsi.o \
104
	  intel_dsi_dcs_backlight.o \
105
	  intel_dsi_panel_vbt.o \
D
Daniel Vetter 已提交
106
	  intel_dsi_pll.o \
D
Daniel Vetter 已提交
107 108 109
	  intel_dvo.o \
	  intel_hdmi.o \
	  intel_i2c.o \
110
	  intel_lspcon.o \
D
Daniel Vetter 已提交
111 112 113 114
	  intel_lvds.o \
	  intel_panel.o \
	  intel_sdvo.o \
	  intel_tv.o
115

116 117 118
# Post-mortem debug and GPU hang state capture
i915-$(CONFIG_DRM_I915_CAPTURE_ERROR) += i915_gpu_error.o

119 120 121
# virtual gpu code
i915-y += i915_vgpu.o

122
# perf code
123 124
i915-y += i915_perf.o \
	  i915_oa_hsw.o
125

126 127 128 129 130
ifeq ($(CONFIG_DRM_I915_GVT),y)
i915-y += intel_gvt.o
include $(src)/gvt/Makefile
endif

131
obj-$(CONFIG_DRM_I915) += i915.o
P
Peter Clifton 已提交
132 133

CFLAGS_i915_trace_points.o := -I$(src)