Makefile 2.6 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 \
D
Daniel Vetter 已提交
19
	  i915_sysfs.o \
D
Daniel Vetter 已提交
20
	  intel_csr.o \
21
	  intel_device_info.o \
22
	  intel_pm.o \
D
Daniel Vetter 已提交
23
	  intel_runtime_pm.o
24

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

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

53
# general-purpose microcontroller (GuC) support
54 55
i915-y += intel_guc_loader.o \
	  i915_guc_submission.o
56

57 58 59
# autogenerated null render state
i915-y += intel_renderstate_gen6.o \
	  intel_renderstate_gen7.o \
60 61
	  intel_renderstate_gen8.o \
	  intel_renderstate_gen9.o
62

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

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

109 110 111
# virtual gpu code
i915-y += i915_vgpu.o

112 113 114 115 116
ifeq ($(CONFIG_DRM_I915_GVT),y)
i915-y += intel_gvt.o
include $(src)/gvt/Makefile
endif

117
obj-$(CONFIG_DRM_I915) += i915.o
P
Peter Clifton 已提交
118 119

CFLAGS_i915_trace_points.o := -I$(src)