Merge tag 'drm-intel-next-2018-12-04' of git://anongit.freedesktop.org/drm/drm-intel...
[sfrench/cifs-2.6.git] / drivers / gpu / drm / i915 / Makefile
1 # SPDX-License-Identifier: GPL-2.0
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
6 # Add a set of useful warning flags and enable -Werror for CI to prevent
7 # trivial mistakes from creeping in. We have to do this piecemeal as we reject
8 # any patch that isn't warning clean, so turning on -Wall -Wextra (or W=1) we
9 # need to filter out dubious warnings.  Still it is our interest
10 # to keep running locally with W=1 C=1 until we are completely clean.
11 #
12 # Note the danger in using -Wall -Wextra is that when CI updates gcc we
13 # will most likely get a sudden build breakage... Hopefully we will fix
14 # new warnings before CI updates!
15 subdir-ccflags-y := -Wall -Wextra
16 subdir-ccflags-y += $(call cc-disable-warning, unused-parameter)
17 subdir-ccflags-y += $(call cc-disable-warning, type-limits)
18 subdir-ccflags-y += $(call cc-disable-warning, missing-field-initializers)
19 subdir-ccflags-y += $(call cc-disable-warning, implicit-fallthrough)
20 subdir-ccflags-y += $(call cc-disable-warning, unused-but-set-variable)
21 # clang warnings
22 subdir-ccflags-y += $(call cc-disable-warning, sign-compare)
23 subdir-ccflags-y += $(call cc-disable-warning, sometimes-uninitialized)
24 subdir-ccflags-y += $(call cc-disable-warning, initializer-overrides)
25 subdir-ccflags-$(CONFIG_DRM_I915_WERROR) += -Werror
26
27 # Fine grained warnings disable
28 CFLAGS_i915_pci.o = $(call cc-disable-warning, override-init)
29 CFLAGS_intel_fbdev.o = $(call cc-disable-warning, override-init)
30
31 subdir-ccflags-y += \
32         $(call as-instr,movntdqa (%eax)$(comma)%xmm0,-DCONFIG_AS_MOVNTDQA)
33
34 # Please keep these build lists sorted!
35
36 # core driver code
37 i915-y := i915_drv.o \
38           i915_irq.o \
39           i915_memcpy.o \
40           i915_mm.o \
41           i915_params.o \
42           i915_pci.o \
43           i915_suspend.o \
44           i915_syncmap.o \
45           i915_sw_fence.o \
46           i915_sysfs.o \
47           intel_csr.o \
48           intel_device_info.o \
49           intel_pm.o \
50           intel_runtime_pm.o \
51           intel_workarounds.o
52
53 i915-$(CONFIG_COMPAT)   += i915_ioc32.o
54 i915-$(CONFIG_DEBUG_FS) += i915_debugfs.o intel_pipe_crc.o
55 i915-$(CONFIG_PERF_EVENTS) += i915_pmu.o
56
57 # GEM code
58 i915-y += i915_cmd_parser.o \
59           i915_gem_batch_pool.o \
60           i915_gem_clflush.o \
61           i915_gem_context.o \
62           i915_gem_dmabuf.o \
63           i915_gem_evict.o \
64           i915_gem_execbuffer.o \
65           i915_gem_fence_reg.o \
66           i915_gem_gtt.o \
67           i915_gem_internal.o \
68           i915_gem.o \
69           i915_gem_object.o \
70           i915_gem_render_state.o \
71           i915_gem_shrinker.o \
72           i915_gem_stolen.o \
73           i915_gem_tiling.o \
74           i915_gem_userptr.o \
75           i915_gemfs.o \
76           i915_query.o \
77           i915_request.o \
78           i915_scheduler.o \
79           i915_timeline.o \
80           i915_trace_points.o \
81           i915_vma.o \
82           intel_breadcrumbs.o \
83           intel_engine_cs.o \
84           intel_hangcheck.o \
85           intel_lrc.o \
86           intel_mocs.o \
87           intel_ringbuffer.o \
88           intel_uncore.o \
89           intel_wopcm.o
90
91 # general-purpose microcontroller (GuC) support
92 i915-y += intel_uc.o \
93           intel_uc_fw.o \
94           intel_guc.o \
95           intel_guc_ads.o \
96           intel_guc_ct.o \
97           intel_guc_fw.o \
98           intel_guc_log.o \
99           intel_guc_submission.o \
100           intel_huc.o \
101           intel_huc_fw.o
102
103 # autogenerated null render state
104 i915-y += intel_renderstate_gen6.o \
105           intel_renderstate_gen7.o \
106           intel_renderstate_gen8.o \
107           intel_renderstate_gen9.o
108
109 # modesetting core code
110 i915-y += intel_audio.o \
111           intel_atomic.o \
112           intel_atomic_plane.o \
113           intel_bios.o \
114           intel_cdclk.o \
115           intel_color.o \
116           intel_combo_phy.o \
117           intel_connector.o \
118           intel_display.o \
119           intel_dpio_phy.o \
120           intel_dpll_mgr.o \
121           intel_fbc.o \
122           intel_fifo_underrun.o \
123           intel_frontbuffer.o \
124           intel_hdcp.o \
125           intel_hotplug.o \
126           intel_overlay.o \
127           intel_psr.o \
128           intel_quirks.o \
129           intel_sideband.o \
130           intel_sprite.o
131 i915-$(CONFIG_ACPI)             += intel_acpi.o intel_opregion.o
132 i915-$(CONFIG_DRM_FBDEV_EMULATION)      += intel_fbdev.o
133
134 # modesetting output/encoder code
135 i915-y += dvo_ch7017.o \
136           dvo_ch7xxx.o \
137           dvo_ivch.o \
138           dvo_ns2501.o \
139           dvo_sil164.o \
140           dvo_tfp410.o \
141           icl_dsi.o \
142           intel_crt.o \
143           intel_ddi.o \
144           intel_dp_aux_backlight.o \
145           intel_dp_link_training.o \
146           intel_dp_mst.o \
147           intel_dp.o \
148           intel_dsi.o \
149           intel_dsi_dcs_backlight.o \
150           intel_dsi_vbt.o \
151           intel_dvo.o \
152           intel_hdmi.o \
153           intel_i2c.o \
154           intel_lspcon.o \
155           intel_lvds.o \
156           intel_panel.o \
157           intel_sdvo.o \
158           intel_tv.o \
159           vlv_dsi.o \
160           vlv_dsi_pll.o \
161           intel_vdsc.o
162
163 # Post-mortem debug and GPU hang state capture
164 i915-$(CONFIG_DRM_I915_CAPTURE_ERROR) += i915_gpu_error.o
165 i915-$(CONFIG_DRM_I915_SELFTEST) += \
166         selftests/i915_random.o \
167         selftests/i915_selftest.o \
168         selftests/igt_flush_test.o \
169         selftests/igt_reset.o \
170         selftests/igt_spinner.o
171
172 # virtual gpu code
173 i915-y += i915_vgpu.o
174
175 # perf code
176 i915-y += i915_perf.o \
177           i915_oa_hsw.o \
178           i915_oa_bdw.o \
179           i915_oa_chv.o \
180           i915_oa_sklgt2.o \
181           i915_oa_sklgt3.o \
182           i915_oa_sklgt4.o \
183           i915_oa_bxt.o \
184           i915_oa_kblgt2.o \
185           i915_oa_kblgt3.o \
186           i915_oa_glk.o \
187           i915_oa_cflgt2.o \
188           i915_oa_cflgt3.o \
189           i915_oa_cnl.o \
190           i915_oa_icl.o
191
192 ifeq ($(CONFIG_DRM_I915_GVT),y)
193 i915-y += intel_gvt.o
194 include $(src)/gvt/Makefile
195 endif
196
197 # LPE Audio for VLV and CHT
198 i915-y += intel_lpe_audio.o
199
200 obj-$(CONFIG_DRM_I915) += i915.o