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