blob: 5196509e71cf38aecdb7354fd220069537ec8a27 [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 \
Ben Widawsky254f9652012-06-04 14:42:42 -070032 i915_gem_context.o \
Daniel Vetter2fae6a82014-03-07 09:17:21 +010033 i915_gem_dmabuf.o \
Chris Wilsonb47eb4a2010-08-07 11:01:23 +010034 i915_gem_evict.o \
Chris Wilson54cf91d2010-11-25 18:00:26 +000035 i915_gem_execbuffer.o \
Joonas Lahtinenb42fe9c2016-11-11 12:43:54 +020036 i915_gem_fence_reg.o \
Chris Wilson54cf91d2010-11-25 18:00:26 +000037 i915_gem_gtt.o \
Chris Wilson920cf412016-10-28 13:58:30 +010038 i915_gem_internal.o \
Daniel Vetter2fae6a82014-03-07 09:17:21 +010039 i915_gem.o \
Daniel Vetter042794b2015-07-24 13:55:10 +020040 i915_gem_render_state.o \
Chris Wilson05235c52016-07-20 09:21:08 +010041 i915_gem_request.o \
Daniel Vetterbe6a0372015-03-18 10:46:04 +010042 i915_gem_shrinker.o \
Chris Wilson9797fbf2012-04-24 15:47:39 +010043 i915_gem_stolen.o \
Jesse Barnes79e53942008-11-07 14:24:08 -080044 i915_gem_tiling.o \
Chris Wilson73cb9702016-10-28 13:58:46 +010045 i915_gem_timeline.o \
Chris Wilson5cc9ed42014-05-16 14:22:37 +010046 i915_gem_userptr.o \
Chris Wilson1c5d22f2009-08-25 11:15:50 +010047 i915_trace_points.o \
Joonas Lahtinenb42fe9c2016-11-11 12:43:54 +020048 i915_vma.o \
Chris Wilson688e6c72016-07-01 17:23:15 +010049 intel_breadcrumbs.o \
Tvrtko Ursulin88d2ba22016-07-13 16:03:40 +010050 intel_engine_cs.o \
Mika Kuoppala3ac168a2016-11-01 18:43:03 +020051 intel_hangcheck.o \
Oscar Mateob20385f2014-07-24 17:04:10 +010052 intel_lrc.o \
Peter Antoine3bbaba02015-07-10 20:13:11 +030053 intel_mocs.o \
Daniel Vetter2fae6a82014-03-07 09:17:21 +010054 intel_ringbuffer.o \
55 intel_uncore.o
56
Alex Dai33a732f2015-08-12 15:43:36 +010057# general-purpose microcontroller (GuC) support
Arkadiusz Hiler2d803c22016-11-25 18:59:35 +010058i915-y += intel_uc.o \
59 intel_guc_loader.o \
Alex Daibac427f2015-08-12 15:43:39 +010060 i915_guc_submission.o
Alex Dai33a732f2015-08-12 15:43:36 +010061
Mika Kuoppala9d0a6fa2014-05-14 17:02:16 +030062# autogenerated null render state
63i915-y += intel_renderstate_gen6.o \
64 intel_renderstate_gen7.o \
Armin Reeseff7a60f2014-10-23 08:34:28 -070065 intel_renderstate_gen8.o \
66 intel_renderstate_gen9.o
Mika Kuoppala9d0a6fa2014-05-14 17:02:16 +030067
Daniel Vetter2fae6a82014-03-07 09:17:21 +010068# modesetting core code
Jani Nikula7c10a2b2014-10-27 16:26:43 +020069i915-y += intel_audio.o \
Daniel Vetter042794b2015-07-24 13:55:10 +020070 intel_atomic.o \
71 intel_atomic_plane.o \
Jani Nikula7c10a2b2014-10-27 16:26:43 +020072 intel_bios.o \
Lionel Landwerlin8563b1e2016-03-16 10:57:14 +000073 intel_color.o \
Jesse Barnes79e53942008-11-07 14:24:08 -080074 intel_display.o \
Ander Conselvan de Oliveirab7fa22d2016-04-27 15:44:17 +030075 intel_dpio_phy.o \
Ander Conselvan de Oliveira7abd4b32016-03-08 17:46:15 +020076 intel_dpll_mgr.o \
Rodrigo Vivi7ff0ebc2014-12-08 14:09:10 -020077 intel_fbc.o \
Daniel Vetter47339cd2014-09-30 10:56:46 +020078 intel_fifo_underrun.o \
Daniel Vetterb680c372014-09-19 18:27:27 +020079 intel_frontbuffer.o \
Daniel Vetter042794b2015-07-24 13:55:10 +020080 intel_hotplug.o \
Daniel Vetter2fae6a82014-03-07 09:17:21 +010081 intel_modes.o \
Daniel Vetter2fae6a82014-03-07 09:17:21 +010082 intel_overlay.o \
Rodrigo Vivi0bc12bc2014-11-14 08:52:28 -080083 intel_psr.o \
Daniel Vetter2fae6a82014-03-07 09:17:21 +010084 intel_sideband.o \
85 intel_sprite.o
Daniel Vettere19b9132014-03-18 09:43:56 +010086i915-$(CONFIG_ACPI) += intel_acpi.o intel_opregion.o
Daniel Vetter06957262015-08-10 13:34:08 +020087i915-$(CONFIG_DRM_FBDEV_EMULATION) += intel_fbdev.o
Daniel Vetter2fae6a82014-03-07 09:17:21 +010088
89# modesetting output/encoder code
90i915-y += dvo_ch7017.o \
91 dvo_ch7xxx.o \
92 dvo_ivch.o \
93 dvo_ns2501.o \
94 dvo_sil164.o \
95 dvo_tfp410.o \
Jesse Barnes79e53942008-11-07 14:24:08 -080096 intel_crt.o \
Eugeni Dodonov45244b82012-05-09 15:37:20 -030097 intel_ddi.o \
Yetunde Adebisie7156c82016-04-05 15:10:52 +010098 intel_dp_aux_backlight.o \
Ander Conselvan de Oliveira94223d02015-10-23 13:01:48 +030099 intel_dp_link_training.o \
Dave Airlie0e32b392014-05-02 14:02:48 +1000100 intel_dp_mst.o \
Daniel Vetter042794b2015-07-24 13:55:10 +0200101 intel_dp.o \
Daniel Vetter2fae6a82014-03-07 09:17:21 +0100102 intel_dsi.o \
Jani Nikula90198352016-04-26 16:14:25 +0300103 intel_dsi_dcs_backlight.o \
Shobhit Kumar2ab8b452014-05-23 21:35:27 +0530104 intel_dsi_panel_vbt.o \
Daniel Vetter042794b2015-07-24 13:55:10 +0200105 intel_dsi_pll.o \
Jesse Barnes79e53942008-11-07 14:24:08 -0800106 intel_dvo.o \
Daniel Vetter2fae6a82014-03-07 09:17:21 +0100107 intel_hdmi.o \
108 intel_i2c.o \
Shashank Sharmadbe9e612016-10-14 19:56:49 +0530109 intel_lspcon.o \
Daniel Vetter2fae6a82014-03-07 09:17:21 +0100110 intel_lvds.o \
111 intel_panel.o \
112 intel_sdvo.o \
113 intel_tv.o
Dave Airliec0e09202008-05-29 10:09:59 +1000114
Chris Wilson98a2f412016-10-12 10:05:18 +0100115# Post-mortem debug and GPU hang state capture
116i915-$(CONFIG_DRM_I915_CAPTURE_ERROR) += i915_gpu_error.o
117
Yu Zhangcf9d2892015-02-10 19:05:47 +0800118# virtual gpu code
119i915-y += i915_vgpu.o
120
Robert Braggeec688e2016-11-07 19:49:47 +0000121# perf code
Robert Bragg8a3003d2016-11-07 19:49:51 +0000122i915-y += i915_perf.o \
123 i915_oa_hsw.o
Robert Braggeec688e2016-11-07 19:49:47 +0000124
Zhi Wang0ad35fe2016-06-16 08:07:00 -0400125ifeq ($(CONFIG_DRM_I915_GVT),y)
126i915-y += intel_gvt.o
127include $(src)/gvt/Makefile
128endif
129
Chris Wilsonc58305a2016-08-19 16:54:28 +0100130obj-$(CONFIG_DRM_I915) += i915.o
Peter Cliftona7c54272010-05-03 13:24:41 +0100131
132CFLAGS_i915_trace_points.o := -I$(src)