xref: /openbmc/linux/drivers/gpu/drm/i915/Makefile (revision 65ee8aeb)
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
5ccflags-y := -Iinclude/drm
6
7# Please keep these build lists sorted!
8
9# core driver code
10i915-y := i915_drv.o \
11	  i915_params.o \
12          i915_suspend.o \
13	  i915_sysfs.o \
14	  intel_pm.o \
15	  intel_runtime_pm.o
16
17i915-$(CONFIG_COMPAT)   += i915_ioc32.o
18i915-$(CONFIG_DEBUG_FS) += i915_debugfs.o
19
20# GEM code
21i915-y += i915_cmd_parser.o \
22	  i915_gem_batch_pool.o \
23	  i915_gem_context.o \
24	  i915_gem_render_state.o \
25	  i915_gem_debug.o \
26	  i915_gem_dmabuf.o \
27	  i915_gem_evict.o \
28	  i915_gem_execbuffer.o \
29	  i915_gem_gtt.o \
30	  i915_gem.o \
31	  i915_gem_shrinker.o \
32	  i915_gem_stolen.o \
33	  i915_gem_tiling.o \
34	  i915_gem_userptr.o \
35	  i915_gpu_error.o \
36	  i915_irq.o \
37	  i915_trace_points.o \
38	  intel_lrc.o \
39	  intel_ringbuffer.o \
40	  intel_uncore.o
41
42# autogenerated null render state
43i915-y += intel_renderstate_gen6.o \
44	  intel_renderstate_gen7.o \
45	  intel_renderstate_gen8.o \
46	  intel_renderstate_gen9.o
47
48# modesetting core code
49i915-y += intel_audio.o \
50	  intel_bios.o \
51	  intel_display.o \
52	  intel_fbc.o \
53	  intel_fifo_underrun.o \
54	  intel_frontbuffer.o \
55	  intel_modes.o \
56	  intel_overlay.o \
57	  intel_psr.o \
58	  intel_sideband.o \
59	  intel_sprite.o
60i915-$(CONFIG_ACPI)		+= intel_acpi.o intel_opregion.o
61i915-$(CONFIG_DRM_I915_FBDEV)	+= intel_fbdev.o
62
63# modesetting output/encoder code
64i915-y += dvo_ch7017.o \
65	  dvo_ch7xxx.o \
66	  dvo_ivch.o \
67	  dvo_ns2501.o \
68	  dvo_sil164.o \
69	  dvo_tfp410.o \
70	  intel_atomic.o \
71	  intel_atomic_plane.o \
72	  intel_crt.o \
73	  intel_ddi.o \
74	  intel_dp.o \
75	  intel_dp_mst.o \
76	  intel_dsi.o \
77	  intel_dsi_pll.o \
78	  intel_dsi_panel_vbt.o \
79	  intel_dvo.o \
80	  intel_hdmi.o \
81	  intel_i2c.o \
82	  intel_lvds.o \
83	  intel_panel.o \
84	  intel_sdvo.o \
85	  intel_tv.o
86
87# virtual gpu code
88i915-y += i915_vgpu.o
89
90# legacy horrors
91i915-y += i915_dma.o
92
93obj-$(CONFIG_DRM_I915)  += i915.o
94
95CFLAGS_i915_trace_points.o := -I$(src)
96