xref: /openbmc/linux/drivers/gpu/drm/i915/Makefile (revision a72594ca)
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
6subdir-ccflags-$(CONFIG_DRM_I915_WERROR) := -Werror
7subdir-ccflags-y += \
8	$(call as-instr,movntdqa (%eax)$(comma)%xmm0,-DCONFIG_AS_MOVNTDQA)
9
10# Please keep these build lists sorted!
11
12# core driver code
13i915-y := i915_drv.o \
14	  i915_irq.o \
15	  i915_memcpy.o \
16	  i915_mm.o \
17	  i915_params.o \
18	  i915_pci.o \
19          i915_suspend.o \
20	  i915_syncmap.o \
21	  i915_sw_fence.o \
22	  i915_sysfs.o \
23	  intel_csr.o \
24	  intel_device_info.o \
25	  intel_pm.o \
26	  intel_runtime_pm.o
27
28i915-$(CONFIG_COMPAT)   += i915_ioc32.o
29i915-$(CONFIG_DEBUG_FS) += i915_debugfs.o intel_pipe_crc.o
30
31# GEM code
32i915-y += i915_cmd_parser.o \
33	  i915_gem_batch_pool.o \
34	  i915_gem_clflush.o \
35	  i915_gem_context.o \
36	  i915_gem_dmabuf.o \
37	  i915_gem_evict.o \
38	  i915_gem_execbuffer.o \
39	  i915_gem_fence_reg.o \
40	  i915_gem_gtt.o \
41	  i915_gem_internal.o \
42	  i915_gem.o \
43	  i915_gem_object.o \
44	  i915_gem_render_state.o \
45	  i915_gem_request.o \
46	  i915_gem_shrinker.o \
47	  i915_gem_stolen.o \
48	  i915_gem_tiling.o \
49	  i915_gem_timeline.o \
50	  i915_gem_userptr.o \
51	  i915_gemfs.o \
52	  i915_trace_points.o \
53	  i915_vma.o \
54	  intel_breadcrumbs.o \
55	  intel_engine_cs.o \
56	  intel_hangcheck.o \
57	  intel_lrc.o \
58	  intel_mocs.o \
59	  intel_ringbuffer.o \
60	  intel_uncore.o
61
62# general-purpose microcontroller (GuC) support
63i915-y += intel_uc.o \
64	  intel_uc_fw.o \
65	  intel_guc.o \
66	  intel_guc_ct.o \
67	  intel_guc_log.o \
68	  intel_guc_fw.o \
69	  intel_huc.o \
70	  i915_guc_submission.o
71
72# autogenerated null render state
73i915-y += intel_renderstate_gen6.o \
74	  intel_renderstate_gen7.o \
75	  intel_renderstate_gen8.o \
76	  intel_renderstate_gen9.o
77
78# modesetting core code
79i915-y += intel_audio.o \
80	  intel_atomic.o \
81	  intel_atomic_plane.o \
82	  intel_bios.o \
83	  intel_cdclk.o \
84	  intel_color.o \
85	  intel_display.o \
86	  intel_dpio_phy.o \
87	  intel_dpll_mgr.o \
88	  intel_fbc.o \
89	  intel_fifo_underrun.o \
90	  intel_frontbuffer.o \
91	  intel_hotplug.o \
92	  intel_modes.o \
93	  intel_overlay.o \
94	  intel_psr.o \
95	  intel_sideband.o \
96	  intel_sprite.o
97i915-$(CONFIG_ACPI)		+= intel_acpi.o intel_opregion.o
98i915-$(CONFIG_DRM_FBDEV_EMULATION)	+= intel_fbdev.o
99
100# modesetting output/encoder code
101i915-y += dvo_ch7017.o \
102	  dvo_ch7xxx.o \
103	  dvo_ivch.o \
104	  dvo_ns2501.o \
105	  dvo_sil164.o \
106	  dvo_tfp410.o \
107	  intel_crt.o \
108	  intel_ddi.o \
109	  intel_dp_aux_backlight.o \
110	  intel_dp_link_training.o \
111	  intel_dp_mst.o \
112	  intel_dp.o \
113	  intel_dsi.o \
114	  intel_dsi_dcs_backlight.o \
115	  intel_dsi_pll.o \
116	  intel_dsi_vbt.o \
117	  intel_dvo.o \
118	  intel_hdmi.o \
119	  intel_i2c.o \
120	  intel_lspcon.o \
121	  intel_lvds.o \
122	  intel_panel.o \
123	  intel_sdvo.o \
124	  intel_tv.o
125
126# Post-mortem debug and GPU hang state capture
127i915-$(CONFIG_DRM_I915_CAPTURE_ERROR) += i915_gpu_error.o
128i915-$(CONFIG_DRM_I915_SELFTEST) += \
129	selftests/i915_random.o \
130	selftests/i915_selftest.o
131
132# virtual gpu code
133i915-y += i915_vgpu.o
134
135# perf code
136i915-y += i915_perf.o \
137	  i915_oa_hsw.o \
138	  i915_oa_bdw.o \
139	  i915_oa_chv.o \
140	  i915_oa_sklgt2.o \
141	  i915_oa_sklgt3.o \
142	  i915_oa_sklgt4.o \
143	  i915_oa_bxt.o \
144	  i915_oa_kblgt2.o \
145	  i915_oa_kblgt3.o \
146	  i915_oa_glk.o \
147	  i915_oa_cflgt2.o
148
149ifeq ($(CONFIG_DRM_I915_GVT),y)
150i915-y += intel_gvt.o
151include $(src)/gvt/Makefile
152endif
153
154# LPE Audio for VLV and CHT
155i915-y += intel_lpe_audio.o
156
157obj-$(CONFIG_DRM_I915) += i915.o
158