blob: aa1ba1df96a216aa33fcb2368a3ab6dc3bd0f0cb [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 Wilsone68a1392016-09-09 14:11:41 +010019 i915_sw_fence.o \
Daniel Vetter2fae6a82014-03-07 09:17:21 +010020 i915_sysfs.o \
Daniel Vetter042794b2015-07-24 13:55:10 +020021 intel_csr.o \
Chris Wilson94b4f3b2016-07-05 10:40:20 +010022 intel_device_info.o \
Daniel Vetter9c065a72014-09-30 10:56:38 +020023 intel_pm.o \
Daniel Vetter042794b2015-07-24 13:55:10 +020024 intel_runtime_pm.o
Daniel Vetter9c065a72014-09-30 10:56:38 +020025
Daniel Vetter2fae6a82014-03-07 09:17:21 +010026i915-$(CONFIG_COMPAT) += i915_ioc32.o
Tomeu Vizoso731035f2016-12-12 13:29:48 +010027i915-$(CONFIG_DEBUG_FS) += i915_debugfs.o intel_pipe_crc.o
Daniel Vetter2fae6a82014-03-07 09:17:21 +010028
29# GEM code
30i915-y += i915_cmd_parser.o \
Brad Volkin493018d2014-12-11 12:13:08 -080031 i915_gem_batch_pool.o \
Chris Wilson57822dc2017-02-22 11:40:48 +000032 i915_gem_clflush.o \
Ben Widawsky254f9652012-06-04 14:42:42 -070033 i915_gem_context.o \
Daniel Vetter2fae6a82014-03-07 09:17:21 +010034 i915_gem_dmabuf.o \
Chris Wilsonb47eb4a2010-08-07 11:01:23 +010035 i915_gem_evict.o \
Chris Wilson54cf91d2010-11-25 18:00:26 +000036 i915_gem_execbuffer.o \
Joonas Lahtinenb42fe9c2016-11-11 12:43:54 +020037 i915_gem_fence_reg.o \
Chris Wilson54cf91d2010-11-25 18:00:26 +000038 i915_gem_gtt.o \
Chris Wilson920cf412016-10-28 13:58:30 +010039 i915_gem_internal.o \
Daniel Vetter2fae6a82014-03-07 09:17:21 +010040 i915_gem.o \
Daniel Vetter042794b2015-07-24 13:55:10 +020041 i915_gem_render_state.o \
Chris Wilson05235c52016-07-20 09:21:08 +010042 i915_gem_request.o \
Daniel Vetterbe6a0372015-03-18 10:46:04 +010043 i915_gem_shrinker.o \
Chris Wilson9797fbf2012-04-24 15:47:39 +010044 i915_gem_stolen.o \
Jesse Barnes79e53942008-11-07 14:24:08 -080045 i915_gem_tiling.o \
Chris Wilson73cb9702016-10-28 13:58:46 +010046 i915_gem_timeline.o \
Chris Wilson5cc9ed42014-05-16 14:22:37 +010047 i915_gem_userptr.o \
Chris Wilson1c5d22f2009-08-25 11:15:50 +010048 i915_trace_points.o \
Joonas Lahtinenb42fe9c2016-11-11 12:43:54 +020049 i915_vma.o \
Chris Wilson688e6c72016-07-01 17:23:15 +010050 intel_breadcrumbs.o \
Tvrtko Ursulin88d2ba22016-07-13 16:03:40 +010051 intel_engine_cs.o \
Mika Kuoppala3ac168a2016-11-01 18:43:03 +020052 intel_hangcheck.o \
Oscar Mateob20385f2014-07-24 17:04:10 +010053 intel_lrc.o \
Peter Antoine3bbaba02015-07-10 20:13:11 +030054 intel_mocs.o \
Daniel Vetter2fae6a82014-03-07 09:17:21 +010055 intel_ringbuffer.o \
56 intel_uncore.o
57
Alex Dai33a732f2015-08-12 15:43:36 +010058# general-purpose microcontroller (GuC) support
Arkadiusz Hiler2d803c22016-11-25 18:59:35 +010059i915-y += intel_uc.o \
Michal Wajdeczkof9cda042017-01-13 17:41:57 +000060 intel_guc_log.o \
Arkadiusz Hiler2d803c22016-11-25 18:59:35 +010061 intel_guc_loader.o \
Anusha Srivatsabd132852017-01-18 08:05:53 -080062 intel_huc.o \
Alex Daibac427f2015-08-12 15:43:39 +010063 i915_guc_submission.o
Alex Dai33a732f2015-08-12 15:43:36 +010064
Mika Kuoppala9d0a6fa2014-05-14 17:02:16 +030065# autogenerated null render state
66i915-y += intel_renderstate_gen6.o \
67 intel_renderstate_gen7.o \
Armin Reeseff7a60f2014-10-23 08:34:28 -070068 intel_renderstate_gen8.o \
69 intel_renderstate_gen9.o
Mika Kuoppala9d0a6fa2014-05-14 17:02:16 +030070
Daniel Vetter2fae6a82014-03-07 09:17:21 +010071# modesetting core code
Jani Nikula7c10a2b2014-10-27 16:26:43 +020072i915-y += intel_audio.o \
Daniel Vetter042794b2015-07-24 13:55:10 +020073 intel_atomic.o \
74 intel_atomic_plane.o \
Jani Nikula7c10a2b2014-10-27 16:26:43 +020075 intel_bios.o \
Ville Syrjälä7ff89ca2017-02-07 20:33:05 +020076 intel_cdclk.o \
Lionel Landwerlin8563b1e2016-03-16 10:57:14 +000077 intel_color.o \
Jesse Barnes79e53942008-11-07 14:24:08 -080078 intel_display.o \
Ander Conselvan de Oliveirab7fa22d2016-04-27 15:44:17 +030079 intel_dpio_phy.o \
Ander Conselvan de Oliveira7abd4b32016-03-08 17:46:15 +020080 intel_dpll_mgr.o \
Rodrigo Vivi7ff0ebc2014-12-08 14:09:10 -020081 intel_fbc.o \
Daniel Vetter47339cd2014-09-30 10:56:46 +020082 intel_fifo_underrun.o \
Daniel Vetterb680c372014-09-19 18:27:27 +020083 intel_frontbuffer.o \
Daniel Vetter042794b2015-07-24 13:55:10 +020084 intel_hotplug.o \
Daniel Vetter2fae6a82014-03-07 09:17:21 +010085 intel_modes.o \
Daniel Vetter2fae6a82014-03-07 09:17:21 +010086 intel_overlay.o \
Rodrigo Vivi0bc12bc2014-11-14 08:52:28 -080087 intel_psr.o \
Daniel Vetter2fae6a82014-03-07 09:17:21 +010088 intel_sideband.o \
89 intel_sprite.o
Daniel Vettere19b9132014-03-18 09:43:56 +010090i915-$(CONFIG_ACPI) += intel_acpi.o intel_opregion.o
Daniel Vetter06957262015-08-10 13:34:08 +020091i915-$(CONFIG_DRM_FBDEV_EMULATION) += intel_fbdev.o
Daniel Vetter2fae6a82014-03-07 09:17:21 +010092
93# modesetting output/encoder code
94i915-y += dvo_ch7017.o \
95 dvo_ch7xxx.o \
96 dvo_ivch.o \
97 dvo_ns2501.o \
98 dvo_sil164.o \
99 dvo_tfp410.o \
Jesse Barnes79e53942008-11-07 14:24:08 -0800100 intel_crt.o \
Eugeni Dodonov45244b82012-05-09 15:37:20 -0300101 intel_ddi.o \
Yetunde Adebisie7156c82016-04-05 15:10:52 +0100102 intel_dp_aux_backlight.o \
Ander Conselvan de Oliveira94223d02015-10-23 13:01:48 +0300103 intel_dp_link_training.o \
Dave Airlie0e32b392014-05-02 14:02:48 +1000104 intel_dp_mst.o \
Daniel Vetter042794b2015-07-24 13:55:10 +0200105 intel_dp.o \
Daniel Vetter2fae6a82014-03-07 09:17:21 +0100106 intel_dsi.o \
Jani Nikula90198352016-04-26 16:14:25 +0300107 intel_dsi_dcs_backlight.o \
Daniel Vetter042794b2015-07-24 13:55:10 +0200108 intel_dsi_pll.o \
Jani Nikula5431fc02017-03-06 16:31:29 +0200109 intel_dsi_vbt.o \
Jesse Barnes79e53942008-11-07 14:24:08 -0800110 intel_dvo.o \
Daniel Vetter2fae6a82014-03-07 09:17:21 +0100111 intel_hdmi.o \
112 intel_i2c.o \
Shashank Sharmadbe9e612016-10-14 19:56:49 +0530113 intel_lspcon.o \
Daniel Vetter2fae6a82014-03-07 09:17:21 +0100114 intel_lvds.o \
115 intel_panel.o \
116 intel_sdvo.o \
117 intel_tv.o
Dave Airliec0e09202008-05-29 10:09:59 +1000118
Chris Wilson98a2f412016-10-12 10:05:18 +0100119# Post-mortem debug and GPU hang state capture
120i915-$(CONFIG_DRM_I915_CAPTURE_ERROR) += i915_gpu_error.o
Chris Wilson953c7f82017-02-13 17:15:12 +0000121i915-$(CONFIG_DRM_I915_SELFTEST) += \
122 selftests/i915_random.o \
123 selftests/i915_selftest.o
Chris Wilson98a2f412016-10-12 10:05:18 +0100124
Yu Zhangcf9d2892015-02-10 19:05:47 +0800125# virtual gpu code
126i915-y += i915_vgpu.o
127
Robert Braggeec688e2016-11-07 19:49:47 +0000128# perf code
Robert Bragg8a3003d2016-11-07 19:49:51 +0000129i915-y += i915_perf.o \
130 i915_oa_hsw.o
Robert Braggeec688e2016-11-07 19:49:47 +0000131
Zhi Wang0ad35fe2016-06-16 08:07:00 -0400132ifeq ($(CONFIG_DRM_I915_GVT),y)
133i915-y += intel_gvt.o
134include $(src)/gvt/Makefile
135endif
136
Chris Wilsonc58305a2016-08-19 16:54:28 +0100137obj-$(CONFIG_DRM_I915) += i915.o
Peter Cliftona7c54272010-05-03 13:24:41 +0100138
139CFLAGS_i915_trace_points.o := -I$(src)