xref: /openbmc/linux/drivers/gpu/drm/i915/Makefile (revision bc5aa3a0)
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
6
7# Please keep these build lists sorted!
8
9# core driver code
10i915-y := i915_drv.o \
11	  i915_irq.o \
12	  i915_params.o \
13	  i915_pci.o \
14          i915_suspend.o \
15	  i915_sysfs.o \
16	  intel_csr.o \
17	  intel_device_info.o \
18	  intel_pm.o \
19	  intel_runtime_pm.o
20
21i915-$(CONFIG_COMPAT)   += i915_ioc32.o
22i915-$(CONFIG_DEBUG_FS) += i915_debugfs.o
23
24# GEM code
25i915-y += i915_cmd_parser.o \
26	  i915_gem_batch_pool.o \
27	  i915_gem_context.o \
28	  i915_gem_debug.o \
29	  i915_gem_dmabuf.o \
30	  i915_gem_evict.o \
31	  i915_gem_execbuffer.o \
32	  i915_gem_fence.o \
33	  i915_gem_gtt.o \
34	  i915_gem.o \
35	  i915_gem_render_state.o \
36	  i915_gem_shrinker.o \
37	  i915_gem_stolen.o \
38	  i915_gem_tiling.o \
39	  i915_gem_userptr.o \
40	  i915_gpu_error.o \
41	  i915_trace_points.o \
42	  intel_breadcrumbs.o \
43	  intel_lrc.o \
44	  intel_mocs.o \
45	  intel_ringbuffer.o \
46	  intel_uncore.o
47
48# general-purpose microcontroller (GuC) support
49i915-y += intel_guc_loader.o \
50	  i915_guc_submission.o
51
52# autogenerated null render state
53i915-y += intel_renderstate_gen6.o \
54	  intel_renderstate_gen7.o \
55	  intel_renderstate_gen8.o \
56	  intel_renderstate_gen9.o
57
58# modesetting core code
59i915-y += intel_audio.o \
60	  intel_atomic.o \
61	  intel_atomic_plane.o \
62	  intel_bios.o \
63	  intel_color.o \
64	  intel_display.o \
65	  intel_dpio_phy.o \
66	  intel_dpll_mgr.o \
67	  intel_fbc.o \
68	  intel_fifo_underrun.o \
69	  intel_frontbuffer.o \
70	  intel_hotplug.o \
71	  intel_modes.o \
72	  intel_overlay.o \
73	  intel_psr.o \
74	  intel_sideband.o \
75	  intel_sprite.o
76i915-$(CONFIG_ACPI)		+= intel_acpi.o intel_opregion.o
77i915-$(CONFIG_DRM_FBDEV_EMULATION)	+= intel_fbdev.o
78
79# modesetting output/encoder code
80i915-y += dvo_ch7017.o \
81	  dvo_ch7xxx.o \
82	  dvo_ivch.o \
83	  dvo_ns2501.o \
84	  dvo_sil164.o \
85	  dvo_tfp410.o \
86	  intel_crt.o \
87	  intel_ddi.o \
88	  intel_dp_aux_backlight.o \
89	  intel_dp_link_training.o \
90	  intel_dp_mst.o \
91	  intel_dp.o \
92	  intel_dsi.o \
93	  intel_dsi_dcs_backlight.o \
94	  intel_dsi_panel_vbt.o \
95	  intel_dsi_pll.o \
96	  intel_dvo.o \
97	  intel_hdmi.o \
98	  intel_i2c.o \
99	  intel_lvds.o \
100	  intel_panel.o \
101	  intel_sdvo.o \
102	  intel_tv.o
103
104# virtual gpu code
105i915-y += i915_vgpu.o
106
107ifeq ($(CONFIG_DRM_I915_GVT),y)
108i915-y += intel_gvt.o
109include $(src)/gvt/Makefile
110endif
111
112obj-$(CONFIG_DRM_I915)  += i915.o
113
114CFLAGS_i915_trace_points.o := -I$(src)
115