Commit | Line | Data |
---|---|---|
b2441318 | 1 | # SPDX-License-Identifier: GPL-2.0 |
c0e09200 DA |
2 | # |
3 | # Makefile for the drm device driver. This driver provides support for the | |
4 | # Direct Rendering Infrastructure (DRI) in XFree86 4.1.0 and higher. | |
5 | ||
0a793ad3 | 6 | subdir-ccflags-$(CONFIG_DRM_I915_WERROR) := -Werror |
0b1de5d5 CW |
7 | subdir-ccflags-y += \ |
8 | $(call as-instr,movntdqa (%eax)$(comma)%xmm0,-DCONFIG_AS_MOVNTDQA) | |
0a793ad3 | 9 | |
2fae6a86 DV |
10 | # Please keep these build lists sorted! |
11 | ||
12 | # core driver code | |
13 | i915-y := i915_drv.o \ | |
042794b1 | 14 | i915_irq.o \ |
0b1de5d5 | 15 | i915_memcpy.o \ |
c58305af | 16 | i915_mm.o \ |
2fae6a86 | 17 | i915_params.o \ |
42f5551d | 18 | i915_pci.o \ |
673a394b | 19 | i915_suspend.o \ |
47979480 | 20 | i915_syncmap.o \ |
e68a139f | 21 | i915_sw_fence.o \ |
2fae6a86 | 22 | i915_sysfs.o \ |
042794b1 | 23 | intel_csr.o \ |
94b4f3ba | 24 | intel_device_info.o \ |
9c065a7d | 25 | intel_pm.o \ |
042794b1 | 26 | intel_runtime_pm.o |
9c065a7d | 27 | |
2fae6a86 | 28 | i915-$(CONFIG_COMPAT) += i915_ioc32.o |
731035fe | 29 | i915-$(CONFIG_DEBUG_FS) += i915_debugfs.o intel_pipe_crc.o |
2fae6a86 DV |
30 | |
31 | # GEM code | |
32 | i915-y += i915_cmd_parser.o \ | |
493018dc | 33 | i915_gem_batch_pool.o \ |
57822dc6 | 34 | i915_gem_clflush.o \ |
254f965c | 35 | i915_gem_context.o \ |
2fae6a86 | 36 | i915_gem_dmabuf.o \ |
b47eb4a2 | 37 | i915_gem_evict.o \ |
54cf91dc | 38 | i915_gem_execbuffer.o \ |
b42fe9ca | 39 | i915_gem_fence_reg.o \ |
54cf91dc | 40 | i915_gem_gtt.o \ |
920cf419 | 41 | i915_gem_internal.o \ |
2fae6a86 | 42 | i915_gem.o \ |
b8f55be6 | 43 | i915_gem_object.o \ |
042794b1 | 44 | i915_gem_render_state.o \ |
05235c53 | 45 | i915_gem_request.o \ |
be6a0376 | 46 | i915_gem_shrinker.o \ |
9797fbfb | 47 | i915_gem_stolen.o \ |
79e53945 | 48 | i915_gem_tiling.o \ |
73cb9701 | 49 | i915_gem_timeline.o \ |
5cc9ed4b | 50 | i915_gem_userptr.o \ |
1c5d22f7 | 51 | i915_trace_points.o \ |
b42fe9ca | 52 | i915_vma.o \ |
688e6c72 | 53 | intel_breadcrumbs.o \ |
88d2ba2e | 54 | intel_engine_cs.o \ |
3ac168a7 | 55 | intel_hangcheck.o \ |
b20385f1 | 56 | intel_lrc.o \ |
3bbaba0c | 57 | intel_mocs.o \ |
2fae6a86 DV |
58 | intel_ringbuffer.o \ |
59 | intel_uncore.o | |
60 | ||
33a732f4 | 61 | # general-purpose microcontroller (GuC) support |
2d803c2d | 62 | i915-y += intel_uc.o \ |
f8a58d63 | 63 | intel_guc_ct.o \ |
f9cda048 | 64 | intel_guc_log.o \ |
2d803c2d | 65 | intel_guc_loader.o \ |
bd132858 | 66 | intel_huc.o \ |
bac427f8 | 67 | i915_guc_submission.o |
33a732f4 | 68 | |
9d0a6fa6 MK |
69 | # autogenerated null render state |
70 | i915-y += intel_renderstate_gen6.o \ | |
71 | intel_renderstate_gen7.o \ | |
ff7a60f2 AR |
72 | intel_renderstate_gen8.o \ |
73 | intel_renderstate_gen9.o | |
9d0a6fa6 | 74 | |
2fae6a86 | 75 | # modesetting core code |
7c10a2b5 | 76 | i915-y += intel_audio.o \ |
042794b1 DV |
77 | intel_atomic.o \ |
78 | intel_atomic_plane.o \ | |
7c10a2b5 | 79 | intel_bios.o \ |
7ff89ca2 | 80 | intel_cdclk.o \ |
8563b1e8 | 81 | intel_color.o \ |
79e53945 | 82 | intel_display.o \ |
b7fa22d8 | 83 | intel_dpio_phy.o \ |
7abd4b35 | 84 | intel_dpll_mgr.o \ |
7ff0ebcc | 85 | intel_fbc.o \ |
47339cd9 | 86 | intel_fifo_underrun.o \ |
b680c37a | 87 | intel_frontbuffer.o \ |
042794b1 | 88 | intel_hotplug.o \ |
79e53945 | 89 | intel_modes.o \ |
2fae6a86 | 90 | intel_overlay.o \ |
0bc12bcb | 91 | intel_psr.o \ |
59de0813 | 92 | intel_sideband.o \ |
2fae6a86 | 93 | intel_sprite.o |
e19b9137 | 94 | i915-$(CONFIG_ACPI) += intel_acpi.o intel_opregion.o |
0695726e | 95 | i915-$(CONFIG_DRM_FBDEV_EMULATION) += intel_fbdev.o |
2fae6a86 DV |
96 | |
97 | # modesetting output/encoder code | |
98 | i915-y += dvo_ch7017.o \ | |
79e53945 | 99 | dvo_ch7xxx.o \ |
79e53945 | 100 | dvo_ivch.o \ |
7434a255 | 101 | dvo_ns2501.o \ |
2fae6a86 DV |
102 | dvo_sil164.o \ |
103 | dvo_tfp410.o \ | |
104 | intel_crt.o \ | |
105 | intel_ddi.o \ | |
e7156c83 | 106 | intel_dp_aux_backlight.o \ |
94223d04 | 107 | intel_dp_link_training.o \ |
0e32b39c | 108 | intel_dp_mst.o \ |
042794b1 | 109 | intel_dp.o \ |
2fae6a86 | 110 | intel_dsi.o \ |
90198355 | 111 | intel_dsi_dcs_backlight.o \ |
042794b1 | 112 | intel_dsi_pll.o \ |
5431fc03 | 113 | intel_dsi_vbt.o \ |
2fae6a86 DV |
114 | intel_dvo.o \ |
115 | intel_hdmi.o \ | |
116 | intel_i2c.o \ | |
dbe9e61b | 117 | intel_lspcon.o \ |
2fae6a86 DV |
118 | intel_lvds.o \ |
119 | intel_panel.o \ | |
120 | intel_sdvo.o \ | |
121 | intel_tv.o | |
4520f53a | 122 | |
98a2f411 CW |
123 | # Post-mortem debug and GPU hang state capture |
124 | i915-$(CONFIG_DRM_I915_CAPTURE_ERROR) += i915_gpu_error.o | |
953c7f82 CW |
125 | i915-$(CONFIG_DRM_I915_SELFTEST) += \ |
126 | selftests/i915_random.o \ | |
127 | selftests/i915_selftest.o | |
98a2f411 | 128 | |
cf9d2890 YZ |
129 | # virtual gpu code |
130 | i915-y += i915_vgpu.o | |
131 | ||
eec688e1 | 132 | # perf code |
8a3003dd | 133 | i915-y += i915_perf.o \ |
5182f646 RB |
134 | i915_oa_hsw.o \ |
135 | i915_oa_bdw.o \ | |
136 | i915_oa_chv.o \ | |
137 | i915_oa_sklgt2.o \ | |
138 | i915_oa_sklgt3.o \ | |
139 | i915_oa_sklgt4.o \ | |
6c5c1d89 LL |
140 | i915_oa_bxt.o \ |
141 | i915_oa_kblgt2.o \ | |
28c7ef9e LL |
142 | i915_oa_kblgt3.o \ |
143 | i915_oa_glk.o | |
eec688e1 | 144 | |
0ad35fed ZW |
145 | ifeq ($(CONFIG_DRM_I915_GVT),y) |
146 | i915-y += intel_gvt.o | |
147 | include $(src)/gvt/Makefile | |
148 | endif | |
149 | ||
eef57324 JA |
150 | # LPE Audio for VLV and CHT |
151 | i915-y += intel_lpe_audio.o | |
152 | ||
c58305af | 153 | obj-$(CONFIG_DRM_I915) += i915.o |
a7c54278 PC |
154 | |
155 | CFLAGS_i915_trace_points.o := -I$(src) |