blob: 892f52b53060a00cc6bb23275eba23c5b1ef16d7 [file] [log] [blame]
Dave Airliec0e09202008-05-29 10:09:59 +10001#
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
Chris Wilson0a793ad2016-04-13 17:35:00 +01005subdir-ccflags-$(CONFIG_DRM_I915_WERROR) := -Werror
Chris Wilson0b1de5d2016-08-12 12:39:59 +01006subdir-ccflags-y += \
7 $(call as-instr,movntdqa (%eax)$(comma)%xmm0,-DCONFIG_AS_MOVNTDQA)
Chris Wilson0a793ad2016-04-13 17:35:00 +01008
Daniel Vetter2fae6a82014-03-07 09:17:21 +01009# Please keep these build lists sorted!
10
11# core driver code
12i915-y := i915_drv.o \
Daniel Vetter042794b2015-07-24 13:55:10 +020013 i915_irq.o \
Chris Wilson0b1de5d2016-08-12 12:39:59 +010014 i915_memcpy.o \
Chris Wilsonc58305a2016-08-19 16:54:28 +010015 i915_mm.o \
Daniel Vetter2fae6a82014-03-07 09:17:21 +010016 i915_params.o \
Chris Wilson42f55512016-06-24 14:00:26 +010017 i915_pci.o \
Eric Anholt673a3942008-07-30 12:06:12 -070018 i915_suspend.o \
Chris Wilson47979482017-05-03 10:39:21 +010019 i915_syncmap.o \
Chris Wilsone68a1392016-09-09 14:11:41 +010020 i915_sw_fence.o \
Daniel Vetter2fae6a82014-03-07 09:17:21 +010021 i915_sysfs.o \
Daniel Vetter042794b2015-07-24 13:55:10 +020022 intel_csr.o \
Chris Wilson94b4f3b2016-07-05 10:40:20 +010023 intel_device_info.o \
Daniel Vetter9c065a72014-09-30 10:56:38 +020024 intel_pm.o \
Daniel Vetter042794b2015-07-24 13:55:10 +020025 intel_runtime_pm.o
Daniel Vetter9c065a72014-09-30 10:56:38 +020026
Daniel Vetter2fae6a82014-03-07 09:17:21 +010027i915-$(CONFIG_COMPAT) += i915_ioc32.o
Tomeu Vizoso731035f2016-12-12 13:29:48 +010028i915-$(CONFIG_DEBUG_FS) += i915_debugfs.o intel_pipe_crc.o
Daniel Vetter2fae6a82014-03-07 09:17:21 +010029
30# GEM code
31i915-y += i915_cmd_parser.o \
Brad Volkin493018d2014-12-11 12:13:08 -080032 i915_gem_batch_pool.o \
Chris Wilson57822dc2017-02-22 11:40:48 +000033 i915_gem_clflush.o \
Ben Widawsky254f9652012-06-04 14:42:42 -070034 i915_gem_context.o \
Daniel Vetter2fae6a82014-03-07 09:17:21 +010035 i915_gem_dmabuf.o \
Chris Wilsonb47eb4a2010-08-07 11:01:23 +010036 i915_gem_evict.o \
Chris Wilson54cf91d2010-11-25 18:00:26 +000037 i915_gem_execbuffer.o \
Joonas Lahtinenb42fe9c2016-11-11 12:43:54 +020038 i915_gem_fence_reg.o \
Chris Wilson54cf91d2010-11-25 18:00:26 +000039 i915_gem_gtt.o \
Chris Wilson920cf412016-10-28 13:58:30 +010040 i915_gem_internal.o \
Daniel Vetter2fae6a82014-03-07 09:17:21 +010041 i915_gem.o \
Chris Wilsonb8f55be2017-08-11 12:11:16 +010042 i915_gem_object.o \
Daniel Vetter042794b2015-07-24 13:55:10 +020043 i915_gem_render_state.o \
Chris Wilson05235c52016-07-20 09:21:08 +010044 i915_gem_request.o \
Daniel Vetterbe6a0372015-03-18 10:46:04 +010045 i915_gem_shrinker.o \
Chris Wilson9797fbf2012-04-24 15:47:39 +010046 i915_gem_stolen.o \
Jesse Barnes79e53942008-11-07 14:24:08 -080047 i915_gem_tiling.o \
Chris Wilson73cb9702016-10-28 13:58:46 +010048 i915_gem_timeline.o \
Chris Wilson5cc9ed42014-05-16 14:22:37 +010049 i915_gem_userptr.o \
Chris Wilson1c5d22f2009-08-25 11:15:50 +010050 i915_trace_points.o \
Joonas Lahtinenb42fe9c2016-11-11 12:43:54 +020051 i915_vma.o \
Chris Wilson688e6c72016-07-01 17:23:15 +010052 intel_breadcrumbs.o \
Tvrtko Ursulin88d2ba22016-07-13 16:03:40 +010053 intel_engine_cs.o \
Mika Kuoppala3ac168a2016-11-01 18:43:03 +020054 intel_hangcheck.o \
Oscar Mateob20385f2014-07-24 17:04:10 +010055 intel_lrc.o \
Peter Antoine3bbaba02015-07-10 20:13:11 +030056 intel_mocs.o \
Daniel Vetter2fae6a82014-03-07 09:17:21 +010057 intel_ringbuffer.o \
58 intel_uncore.o
59
Alex Dai33a732f2015-08-12 15:43:36 +010060# general-purpose microcontroller (GuC) support
Arkadiusz Hiler2d803c22016-11-25 18:59:35 +010061i915-y += intel_uc.o \
Michal Wajdeczkof8a58d62017-05-26 11:13:25 +000062 intel_guc_ct.o \
Michal Wajdeczkof9cda042017-01-13 17:41:57 +000063 intel_guc_log.o \
Arkadiusz Hiler2d803c22016-11-25 18:59:35 +010064 intel_guc_loader.o \
Anusha Srivatsabd132852017-01-18 08:05:53 -080065 intel_huc.o \
Alex Daibac427f2015-08-12 15:43:39 +010066 i915_guc_submission.o
Alex Dai33a732f2015-08-12 15:43:36 +010067
Mika Kuoppala9d0a6fa2014-05-14 17:02:16 +030068# autogenerated null render state
69i915-y += intel_renderstate_gen6.o \
70 intel_renderstate_gen7.o \
Armin Reeseff7a60f2014-10-23 08:34:28 -070071 intel_renderstate_gen8.o \
72 intel_renderstate_gen9.o
Mika Kuoppala9d0a6fa2014-05-14 17:02:16 +030073
Daniel Vetter2fae6a82014-03-07 09:17:21 +010074# modesetting core code
Jani Nikula7c10a2b2014-10-27 16:26:43 +020075i915-y += intel_audio.o \
Daniel Vetter042794b2015-07-24 13:55:10 +020076 intel_atomic.o \
77 intel_atomic_plane.o \
Jani Nikula7c10a2b2014-10-27 16:26:43 +020078 intel_bios.o \
Ville Syrjälä7ff89ca2017-02-07 20:33:05 +020079 intel_cdclk.o \
Lionel Landwerlin8563b1e2016-03-16 10:57:14 +000080 intel_color.o \
Jesse Barnes79e53942008-11-07 14:24:08 -080081 intel_display.o \
Ander Conselvan de Oliveirab7fa22d2016-04-27 15:44:17 +030082 intel_dpio_phy.o \
Ander Conselvan de Oliveira7abd4b32016-03-08 17:46:15 +020083 intel_dpll_mgr.o \
Rodrigo Vivi7ff0ebc2014-12-08 14:09:10 -020084 intel_fbc.o \
Daniel Vetter47339cd2014-09-30 10:56:46 +020085 intel_fifo_underrun.o \
Daniel Vetterb680c372014-09-19 18:27:27 +020086 intel_frontbuffer.o \
Daniel Vetter042794b2015-07-24 13:55:10 +020087 intel_hotplug.o \
Daniel Vetter2fae6a82014-03-07 09:17:21 +010088 intel_modes.o \
Daniel Vetter2fae6a82014-03-07 09:17:21 +010089 intel_overlay.o \
Rodrigo Vivi0bc12bc2014-11-14 08:52:28 -080090 intel_psr.o \
Daniel Vetter2fae6a82014-03-07 09:17:21 +010091 intel_sideband.o \
92 intel_sprite.o
Daniel Vettere19b9132014-03-18 09:43:56 +010093i915-$(CONFIG_ACPI) += intel_acpi.o intel_opregion.o
Daniel Vetter06957262015-08-10 13:34:08 +020094i915-$(CONFIG_DRM_FBDEV_EMULATION) += intel_fbdev.o
Daniel Vetter2fae6a82014-03-07 09:17:21 +010095
96# modesetting output/encoder code
97i915-y += dvo_ch7017.o \
98 dvo_ch7xxx.o \
99 dvo_ivch.o \
100 dvo_ns2501.o \
101 dvo_sil164.o \
102 dvo_tfp410.o \
Jesse Barnes79e53942008-11-07 14:24:08 -0800103 intel_crt.o \
Eugeni Dodonov45244b82012-05-09 15:37:20 -0300104 intel_ddi.o \
Yetunde Adebisie7156c82016-04-05 15:10:52 +0100105 intel_dp_aux_backlight.o \
Ander Conselvan de Oliveira94223d02015-10-23 13:01:48 +0300106 intel_dp_link_training.o \
Dave Airlie0e32b392014-05-02 14:02:48 +1000107 intel_dp_mst.o \
Daniel Vetter042794b2015-07-24 13:55:10 +0200108 intel_dp.o \
Daniel Vetter2fae6a82014-03-07 09:17:21 +0100109 intel_dsi.o \
Jani Nikula90198352016-04-26 16:14:25 +0300110 intel_dsi_dcs_backlight.o \
Daniel Vetter042794b2015-07-24 13:55:10 +0200111 intel_dsi_pll.o \
Jani Nikula5431fc02017-03-06 16:31:29 +0200112 intel_dsi_vbt.o \
Jesse Barnes79e53942008-11-07 14:24:08 -0800113 intel_dvo.o \
Daniel Vetter2fae6a82014-03-07 09:17:21 +0100114 intel_hdmi.o \
115 intel_i2c.o \
Shashank Sharmadbe9e612016-10-14 19:56:49 +0530116 intel_lspcon.o \
Daniel Vetter2fae6a82014-03-07 09:17:21 +0100117 intel_lvds.o \
118 intel_panel.o \
119 intel_sdvo.o \
120 intel_tv.o
Dave Airliec0e09202008-05-29 10:09:59 +1000121
Chris Wilson98a2f412016-10-12 10:05:18 +0100122# Post-mortem debug and GPU hang state capture
123i915-$(CONFIG_DRM_I915_CAPTURE_ERROR) += i915_gpu_error.o
Chris Wilson953c7f82017-02-13 17:15:12 +0000124i915-$(CONFIG_DRM_I915_SELFTEST) += \
125 selftests/i915_random.o \
126 selftests/i915_selftest.o
Chris Wilson98a2f412016-10-12 10:05:18 +0100127
Yu Zhangcf9d2892015-02-10 19:05:47 +0800128# virtual gpu code
129i915-y += i915_vgpu.o
130
Robert Braggeec688e2016-11-07 19:49:47 +0000131# perf code
Robert Bragg8a3003d2016-11-07 19:49:51 +0000132i915-y += i915_perf.o \
Robert Bragg5182f642017-06-13 12:23:02 +0100133 i915_oa_hsw.o \
134 i915_oa_bdw.o \
135 i915_oa_chv.o \
136 i915_oa_sklgt2.o \
137 i915_oa_sklgt3.o \
138 i915_oa_sklgt4.o \
Lionel Landwerlin6c5c1d82017-06-13 12:23:08 +0100139 i915_oa_bxt.o \
140 i915_oa_kblgt2.o \
Lionel Landwerlin28c7ef92017-06-13 12:23:09 +0100141 i915_oa_kblgt3.o \
142 i915_oa_glk.o
Robert Braggeec688e2016-11-07 19:49:47 +0000143
Zhi Wang0ad35fe2016-06-16 08:07:00 -0400144ifeq ($(CONFIG_DRM_I915_GVT),y)
145i915-y += intel_gvt.o
146include $(src)/gvt/Makefile
147endif
148
Jerome Anandeef57322017-01-25 04:27:49 +0530149# LPE Audio for VLV and CHT
150i915-y += intel_lpe_audio.o
151
Chris Wilsonc58305a2016-08-19 16:54:28 +0100152obj-$(CONFIG_DRM_I915) += i915.o
Peter Cliftona7c54272010-05-03 13:24:41 +0100153
154CFLAGS_i915_trace_points.o := -I$(src)