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 subdir-ccflags-$(CONFIG_DRM_I915_WERROR) := -Werror
7 $(call as-instr,movntdqa (%eax)$(comma)%xmm0,-DCONFIG_AS_MOVNTDQA)
9 # Please keep these build lists sorted!
12 i915-y := i915_drv.o \
26 i915-$(CONFIG_COMPAT) += i915_ioc32.o
27 i915-$(CONFIG_DEBUG_FS) += i915_debugfs.o
30 i915-y += i915_cmd_parser.o \
31 i915_gem_batch_pool.o \
35 i915_gem_execbuffer.o \
36 i915_gem_fence_reg.o \
40 i915_gem_render_state.o \
57 # general-purpose microcontroller (GuC) support
58 i915-y += intel_uc.o \
62 # autogenerated null render state
63 i915-y += intel_renderstate_gen6.o \
64 intel_renderstate_gen7.o \
65 intel_renderstate_gen8.o \
66 intel_renderstate_gen9.o
68 # modesetting core code
69 i915-y += intel_audio.o \
71 intel_atomic_plane.o \
78 intel_fifo_underrun.o \
86 i915-$(CONFIG_ACPI) += intel_acpi.o intel_opregion.o
87 i915-$(CONFIG_DRM_FBDEV_EMULATION) += intel_fbdev.o
89 # modesetting output/encoder code
90 i915-y += dvo_ch7017.o \
98 intel_dp_aux_backlight.o \
99 intel_dp_link_training.o \
103 intel_dsi_dcs_backlight.o \
104 intel_dsi_panel_vbt.o \
115 # Post-mortem debug and GPU hang state capture
116 i915-$(CONFIG_DRM_I915_CAPTURE_ERROR) += i915_gpu_error.o
119 i915-y += i915_vgpu.o
122 i915-y += i915_perf.o \
125 ifeq ($(CONFIG_DRM_I915_GVT),y)
126 i915-y += intel_gvt.o
127 include $(src)/gvt/Makefile
130 obj-$(CONFIG_DRM_I915) += i915.o
132 CFLAGS_i915_trace_points.o := -I$(src)