Makefile (f178b89743867255b3946b40b640f379c3961c09) Makefile (abad6805ee78945d0a36c408997c01055e7077fb)
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

--- 24 unchanged lines hidden (view full) ---

33
34# Please keep these build lists sorted!
35
36# core driver code
37i915-y += i915_drv.o \
38 i915_config.o \
39 i915_irq.o \
40 i915_getparam.o \
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

--- 24 unchanged lines hidden (view full) ---

33
34# Please keep these build lists sorted!
35
36# core driver code
37i915-y += i915_drv.o \
38 i915_config.o \
39 i915_irq.o \
40 i915_getparam.o \
41 i915_mitigations.o \
42 i915_params.o \
43 i915_pci.o \
44 i915_scatterlist.o \
45 i915_suspend.o \
46 i915_switcheroo.o \
47 i915_sysfs.o \
48 i915_utils.o \
49 intel_device_info.o \

--- 4 unchanged lines hidden (view full) ---

54 intel_runtime_pm.o \
55 intel_sideband.o \
56 intel_uncore.o \
57 intel_wakeref.o \
58 vlv_suspend.o
59
60# core library code
61i915-y += \
41 i915_params.o \
42 i915_pci.o \
43 i915_scatterlist.o \
44 i915_suspend.o \
45 i915_switcheroo.o \
46 i915_sysfs.o \
47 i915_utils.o \
48 intel_device_info.o \

--- 4 unchanged lines hidden (view full) ---

53 intel_runtime_pm.o \
54 intel_sideband.o \
55 intel_uncore.o \
56 intel_wakeref.o \
57 vlv_suspend.o
58
59# core library code
60i915-y += \
62 dma_resv_utils.o \
63 i915_memcpy.o \
64 i915_mm.o \
65 i915_sw_fence.o \
66 i915_sw_fence_work.o \
67 i915_syncmap.o \
68 i915_user_extensions.o
69
70i915-$(CONFIG_COMPAT) += i915_ioc32.o

--- 8 unchanged lines hidden (view full) ---

79gt-y += \
80 gt/debugfs_engines.o \
81 gt/debugfs_gt.o \
82 gt/debugfs_gt_pm.o \
83 gt/gen2_engine_cs.o \
84 gt/gen6_engine_cs.o \
85 gt/gen6_ppgtt.o \
86 gt/gen7_renderclear.o \
61 i915_memcpy.o \
62 i915_mm.o \
63 i915_sw_fence.o \
64 i915_sw_fence_work.o \
65 i915_syncmap.o \
66 i915_user_extensions.o
67
68i915-$(CONFIG_COMPAT) += i915_ioc32.o

--- 8 unchanged lines hidden (view full) ---

77gt-y += \
78 gt/debugfs_engines.o \
79 gt/debugfs_gt.o \
80 gt/debugfs_gt_pm.o \
81 gt/gen2_engine_cs.o \
82 gt/gen6_engine_cs.o \
83 gt/gen6_ppgtt.o \
84 gt/gen7_renderclear.o \
87 gt/gen8_engine_cs.o \
88 gt/gen8_ppgtt.o \
89 gt/intel_breadcrumbs.o \
90 gt/intel_context.o \
91 gt/intel_context_param.o \
92 gt/intel_context_sseu.o \
93 gt/intel_engine_cs.o \
94 gt/intel_engine_heartbeat.o \
95 gt/intel_engine_pm.o \
96 gt/intel_engine_user.o \
85 gt/gen8_ppgtt.o \
86 gt/intel_breadcrumbs.o \
87 gt/intel_context.o \
88 gt/intel_context_param.o \
89 gt/intel_context_sseu.o \
90 gt/intel_engine_cs.o \
91 gt/intel_engine_heartbeat.o \
92 gt/intel_engine_pm.o \
93 gt/intel_engine_user.o \
97 gt/intel_execlists_submission.o \
98 gt/intel_ggtt.o \
99 gt/intel_ggtt_fencing.o \
100 gt/intel_gt.o \
101 gt/intel_gt_buffer_pool.o \
102 gt/intel_gt_clock_utils.o \
103 gt/intel_gt_irq.o \
104 gt/intel_gt_pm.o \
105 gt/intel_gt_pm_irq.o \
106 gt/intel_gt_requests.o \
107 gt/intel_gtt.o \
108 gt/intel_llc.o \
109 gt/intel_lrc.o \
110 gt/intel_mocs.o \
111 gt/intel_ppgtt.o \
112 gt/intel_rc6.o \
94 gt/intel_ggtt.o \
95 gt/intel_ggtt_fencing.o \
96 gt/intel_gt.o \
97 gt/intel_gt_buffer_pool.o \
98 gt/intel_gt_clock_utils.o \
99 gt/intel_gt_irq.o \
100 gt/intel_gt_pm.o \
101 gt/intel_gt_pm_irq.o \
102 gt/intel_gt_requests.o \
103 gt/intel_gtt.o \
104 gt/intel_llc.o \
105 gt/intel_lrc.o \
106 gt/intel_mocs.o \
107 gt/intel_ppgtt.o \
108 gt/intel_rc6.o \
113 gt/intel_region_lmem.o \
114 gt/intel_renderstate.o \
115 gt/intel_reset.o \
116 gt/intel_ring.o \
117 gt/intel_ring_submission.o \
118 gt/intel_rps.o \
119 gt/intel_sseu.o \
120 gt/intel_sseu_debugfs.o \
121 gt/intel_timeline.o \

--- 44 unchanged lines hidden (view full) ---

166 i915_gem_gtt.o \
167 i915_gem.o \
168 i915_globals.o \
169 i915_query.o \
170 i915_request.o \
171 i915_scheduler.o \
172 i915_trace_points.o \
173 i915_vma.o \
109 gt/intel_renderstate.o \
110 gt/intel_reset.o \
111 gt/intel_ring.o \
112 gt/intel_ring_submission.o \
113 gt/intel_rps.o \
114 gt/intel_sseu.o \
115 gt/intel_sseu_debugfs.o \
116 gt/intel_timeline.o \

--- 44 unchanged lines hidden (view full) ---

161 i915_gem_gtt.o \
162 i915_gem.o \
163 i915_globals.o \
164 i915_query.o \
165 i915_request.o \
166 i915_scheduler.o \
167 i915_trace_points.o \
168 i915_vma.o \
169 intel_region_lmem.o \
174 intel_wopcm.o
175
176# general-purpose microcontroller (GuC) support
177i915-y += gt/uc/intel_uc.o \
178 gt/uc/intel_uc_debugfs.o \
179 gt/uc/intel_uc_fw.o \
180 gt/uc/intel_guc.o \
181 gt/uc/intel_guc_ads.o \

--- 14 unchanged lines hidden (view full) ---

196 display/intel_audio.o \
197 display/intel_bios.o \
198 display/intel_bw.o \
199 display/intel_cdclk.o \
200 display/intel_color.o \
201 display/intel_combo_phy.o \
202 display/intel_connector.o \
203 display/intel_csr.o \
170 intel_wopcm.o
171
172# general-purpose microcontroller (GuC) support
173i915-y += gt/uc/intel_uc.o \
174 gt/uc/intel_uc_debugfs.o \
175 gt/uc/intel_uc_fw.o \
176 gt/uc/intel_guc.o \
177 gt/uc/intel_guc_ads.o \

--- 14 unchanged lines hidden (view full) ---

192 display/intel_audio.o \
193 display/intel_bios.o \
194 display/intel_bw.o \
195 display/intel_cdclk.o \
196 display/intel_color.o \
197 display/intel_combo_phy.o \
198 display/intel_connector.o \
199 display/intel_csr.o \
200 display/intel_cursor.o \
204 display/intel_display.o \
205 display/intel_display_power.o \
206 display/intel_dpio_phy.o \
207 display/intel_dpll_mgr.o \
208 display/intel_dsb.o \
209 display/intel_fbc.o \
210 display/intel_fifo_underrun.o \
211 display/intel_frontbuffer.o \
212 display/intel_global_state.o \
213 display/intel_hdcp.o \
214 display/intel_hotplug.o \
215 display/intel_lpe_audio.o \
216 display/intel_overlay.o \
217 display/intel_psr.o \
218 display/intel_quirks.o \
219 display/intel_sprite.o \
220 display/intel_tc.o \
201 display/intel_display.o \
202 display/intel_display_power.o \
203 display/intel_dpio_phy.o \
204 display/intel_dpll_mgr.o \
205 display/intel_dsb.o \
206 display/intel_fbc.o \
207 display/intel_fifo_underrun.o \
208 display/intel_frontbuffer.o \
209 display/intel_global_state.o \
210 display/intel_hdcp.o \
211 display/intel_hotplug.o \
212 display/intel_lpe_audio.o \
213 display/intel_overlay.o \
214 display/intel_psr.o \
215 display/intel_quirks.o \
216 display/intel_sprite.o \
217 display/intel_tc.o \
221 display/intel_vga.o
218 display/intel_vga.o \
219 display/i9xx_plane.o
222i915-$(CONFIG_ACPI) += \
223 display/intel_acpi.o \
224 display/intel_opregion.o
225i915-$(CONFIG_DRM_FBDEV_EMULATION) += \
226 display/intel_fbdev.o
227
228# modesetting output/encoder code
229i915-y += \

--- 15 unchanged lines hidden (view full) ---

245 display/intel_dsi_dcs_backlight.o \
246 display/intel_dsi_vbt.o \
247 display/intel_dvo.o \
248 display/intel_gmbus.o \
249 display/intel_hdmi.o \
250 display/intel_lspcon.o \
251 display/intel_lvds.o \
252 display/intel_panel.o \
220i915-$(CONFIG_ACPI) += \
221 display/intel_acpi.o \
222 display/intel_opregion.o
223i915-$(CONFIG_DRM_FBDEV_EMULATION) += \
224 display/intel_fbdev.o
225
226# modesetting output/encoder code
227i915-y += \

--- 15 unchanged lines hidden (view full) ---

243 display/intel_dsi_dcs_backlight.o \
244 display/intel_dsi_vbt.o \
245 display/intel_dvo.o \
246 display/intel_gmbus.o \
247 display/intel_hdmi.o \
248 display/intel_lspcon.o \
249 display/intel_lvds.o \
250 display/intel_panel.o \
251 display/intel_pps.o \
253 display/intel_sdvo.o \
254 display/intel_tv.o \
255 display/intel_vdsc.o \
256 display/vlv_dsi.o \
257 display/vlv_dsi_pll.o
258
259i915-y += i915_perf.o
260

--- 21 unchanged lines hidden (view full) ---

282
283obj-$(CONFIG_DRM_I915) += i915.o
284obj-$(CONFIG_DRM_I915_GVT_KVMGT) += gvt/kvmgt.o
285
286# header test
287
288# exclude some broken headers from the test coverage
289no-header-test := \
252 display/intel_sdvo.o \
253 display/intel_tv.o \
254 display/intel_vdsc.o \
255 display/vlv_dsi.o \
256 display/vlv_dsi_pll.o
257
258i915-y += i915_perf.o
259

--- 21 unchanged lines hidden (view full) ---

281
282obj-$(CONFIG_DRM_I915) += i915.o
283obj-$(CONFIG_DRM_I915_GVT_KVMGT) += gvt/kvmgt.o
284
285# header test
286
287# exclude some broken headers from the test coverage
288no-header-test := \
290 display/intel_vbt_defs.h \
291 gvt/execlist.h \
292 gvt/fb_decoder.h \
293 gvt/gtt.h \
294 gvt/gvt.h \
295 gvt/interrupt.h \
296 gvt/mmio_context.h \
297 gvt/mpt.h \
298 gvt/scheduler.h
289 display/intel_vbt_defs.h
299
300extra-$(CONFIG_DRM_I915_WERROR) += \
301 $(patsubst %.h,%.hdrtest, $(filter-out $(no-header-test), \
302 $(shell cd $(srctree)/$(src) && find * -name '*.h')))
303
304quiet_cmd_hdrtest = HDRTEST $(patsubst %.hdrtest,%.h,$@)
305 cmd_hdrtest = $(CC) $(filter-out $(CFLAGS_GCOV), $(c_flags)) -S -o /dev/null -x c /dev/null -include $<; touch $@
306
307$(obj)/%.hdrtest: $(src)/%.h FORCE
308 $(call if_changed_dep,hdrtest)
290
291extra-$(CONFIG_DRM_I915_WERROR) += \
292 $(patsubst %.h,%.hdrtest, $(filter-out $(no-header-test), \
293 $(shell cd $(srctree)/$(src) && find * -name '*.h')))
294
295quiet_cmd_hdrtest = HDRTEST $(patsubst %.hdrtest,%.h,$@)
296 cmd_hdrtest = $(CC) $(filter-out $(CFLAGS_GCOV), $(c_flags)) -S -o /dev/null -x c /dev/null -include $<; touch $@
297
298$(obj)/%.hdrtest: $(src)/%.h FORCE
299 $(call if_changed_dep,hdrtest)