Makefile 4.6 KB
Newer Older
1
# SPDX-License-Identifier: GPL-2.0
2 3 4 5
#
# Makefile for the drm device driver.  This driver provides support for the
# Direct Rendering Infrastructure (DRI) in XFree86 4.1.0 and higher.

6 7 8 9 10 11 12 13 14 15
# Add a set of useful warning flags and enable -Werror for CI to prevent
# trivial mistakes from creeping in. We have to do this piecemeal as we reject
# any patch that isn't warning clean, so turning on -Wall -Wextra (or W=1) we
# need to filter out dubious warnings.  Still it is our interest
# to keep running locally with W=1 C=1 until we are completely clean.
#
# Note the danger in using -Wall -Wextra is that when CI updates gcc we
# will most likely get a sudden build breakage... Hopefully we will fix
# new warnings before CI updates!
subdir-ccflags-y := -Wall -Wextra
16 17 18 19
subdir-ccflags-y += $(call cc-disable-warning, unused-parameter)
subdir-ccflags-y += $(call cc-disable-warning, type-limits)
subdir-ccflags-y += $(call cc-disable-warning, missing-field-initializers)
subdir-ccflags-y += $(call cc-disable-warning, implicit-fallthrough)
20
subdir-ccflags-y += $(call cc-disable-warning, unused-but-set-variable)
21 22 23
subdir-ccflags-$(CONFIG_DRM_I915_WERROR) += -Werror

# Fine grained warnings disable
24 25
CFLAGS_i915_pci.o = $(call cc-disable-warning, override-init)
CFLAGS_intel_fbdev.o = $(call cc-disable-warning, override-init)
26

27 28
subdir-ccflags-y += \
	$(call as-instr,movntdqa (%eax)$(comma)%xmm0,-DCONFIG_AS_MOVNTDQA)
29

D
Daniel Vetter 已提交
30 31 32 33
# Please keep these build lists sorted!

# core driver code
i915-y := i915_drv.o \
D
Daniel Vetter 已提交
34
	  i915_irq.o \
35
	  i915_memcpy.o \
36
	  i915_mm.o \
D
Daniel Vetter 已提交
37
	  i915_params.o \
38
	  i915_pci.o \
39
          i915_suspend.o \
40
	  i915_syncmap.o \
41
	  i915_sw_fence.o \
D
Daniel Vetter 已提交
42
	  i915_sysfs.o \
D
Daniel Vetter 已提交
43
	  intel_csr.o \
44
	  intel_device_info.o \
45
	  intel_pm.o \
D
Daniel Vetter 已提交
46
	  intel_runtime_pm.o
47

D
Daniel Vetter 已提交
48
i915-$(CONFIG_COMPAT)   += i915_ioc32.o
49
i915-$(CONFIG_DEBUG_FS) += i915_debugfs.o intel_pipe_crc.o
50
i915-$(CONFIG_PERF_EVENTS) += i915_pmu.o
D
Daniel Vetter 已提交
51 52 53

# GEM code
i915-y += i915_cmd_parser.o \
54
	  i915_gem_batch_pool.o \
55
	  i915_gem_clflush.o \
56
	  i915_gem_context.o \
D
Daniel Vetter 已提交
57
	  i915_gem_dmabuf.o \
58
	  i915_gem_evict.o \
59
	  i915_gem_execbuffer.o \
J
Joonas Lahtinen 已提交
60
	  i915_gem_fence_reg.o \
61
	  i915_gem_gtt.o \
62
	  i915_gem_internal.o \
D
Daniel Vetter 已提交
63
	  i915_gem.o \
64
	  i915_gem_object.o \
D
Daniel Vetter 已提交
65
	  i915_gem_render_state.o \
66
	  i915_gem_request.o \
67
	  i915_gem_shrinker.o \
68
	  i915_gem_stolen.o \
J
Jesse Barnes 已提交
69
	  i915_gem_tiling.o \
70
	  i915_gem_timeline.o \
71
	  i915_gem_userptr.o \
M
Matthew Auld 已提交
72
	  i915_gemfs.o \
C
Chris Wilson 已提交
73
	  i915_trace_points.o \
J
Joonas Lahtinen 已提交
74
	  i915_vma.o \
75
	  intel_breadcrumbs.o \
76
	  intel_engine_cs.o \
77
	  intel_hangcheck.o \
78
	  intel_lrc.o \
79
	  intel_mocs.o \
D
Daniel Vetter 已提交
80 81 82
	  intel_ringbuffer.o \
	  intel_uncore.o

83
# general-purpose microcontroller (GuC) support
84
i915-y += intel_uc.o \
85
	  intel_uc_fw.o \
86
	  intel_guc.o \
87
	  intel_guc_ads.o \
88
	  intel_guc_ct.o \
89
	  intel_guc_fw.o \
90 91 92
	  intel_guc_log.o \
	  intel_guc_submission.o \
	  intel_huc.o
93

94 95 96
# autogenerated null render state
i915-y += intel_renderstate_gen6.o \
	  intel_renderstate_gen7.o \
97 98
	  intel_renderstate_gen8.o \
	  intel_renderstate_gen9.o
99

D
Daniel Vetter 已提交
100
# modesetting core code
101
i915-y += intel_audio.o \
D
Daniel Vetter 已提交
102 103
	  intel_atomic.o \
	  intel_atomic_plane.o \
104
	  intel_bios.o \
105
	  intel_cdclk.o \
106
	  intel_color.o \
J
Jesse Barnes 已提交
107
	  intel_display.o \
108
	  intel_dpio_phy.o \
109
	  intel_dpll_mgr.o \
110
	  intel_fbc.o \
111
	  intel_fifo_underrun.o \
112
	  intel_frontbuffer.o \
D
Daniel Vetter 已提交
113
	  intel_hotplug.o \
J
Jesse Barnes 已提交
114
	  intel_modes.o \
D
Daniel Vetter 已提交
115
	  intel_overlay.o \
R
Rodrigo Vivi 已提交
116
	  intel_psr.o \
117
	  intel_sideband.o \
D
Daniel Vetter 已提交
118
	  intel_sprite.o
119
i915-$(CONFIG_ACPI)		+= intel_acpi.o intel_opregion.o
120
i915-$(CONFIG_DRM_FBDEV_EMULATION)	+= intel_fbdev.o
D
Daniel Vetter 已提交
121 122 123

# modesetting output/encoder code
i915-y += dvo_ch7017.o \
J
Jesse Barnes 已提交
124 125
	  dvo_ch7xxx.o \
	  dvo_ivch.o \
126
	  dvo_ns2501.o \
D
Daniel Vetter 已提交
127 128 129 130
	  dvo_sil164.o \
	  dvo_tfp410.o \
	  intel_crt.o \
	  intel_ddi.o \
131
	  intel_dp_aux_backlight.o \
132
	  intel_dp_link_training.o \
133
	  intel_dp_mst.o \
D
Daniel Vetter 已提交
134
	  intel_dp.o \
D
Daniel Vetter 已提交
135
	  intel_dsi.o \
136
	  intel_dsi_dcs_backlight.o \
D
Daniel Vetter 已提交
137
	  intel_dsi_pll.o \
138
	  intel_dsi_vbt.o \
D
Daniel Vetter 已提交
139 140 141
	  intel_dvo.o \
	  intel_hdmi.o \
	  intel_i2c.o \
142
	  intel_lspcon.o \
D
Daniel Vetter 已提交
143 144 145 146
	  intel_lvds.o \
	  intel_panel.o \
	  intel_sdvo.o \
	  intel_tv.o
147

148 149
# Post-mortem debug and GPU hang state capture
i915-$(CONFIG_DRM_I915_CAPTURE_ERROR) += i915_gpu_error.o
150 151 152
i915-$(CONFIG_DRM_I915_SELFTEST) += \
	selftests/i915_random.o \
	selftests/i915_selftest.o
153

154 155 156
# virtual gpu code
i915-y += i915_vgpu.o

157
# perf code
158
i915-y += i915_perf.o \
159 160 161 162 163 164
	  i915_oa_hsw.o \
	  i915_oa_bdw.o \
	  i915_oa_chv.o \
	  i915_oa_sklgt2.o \
	  i915_oa_sklgt3.o \
	  i915_oa_sklgt4.o \
165 166
	  i915_oa_bxt.o \
	  i915_oa_kblgt2.o \
167
	  i915_oa_kblgt3.o \
168
	  i915_oa_glk.o \
169
	  i915_oa_cflgt2.o \
170 171
	  i915_oa_cflgt3.o \
	  i915_oa_cnl.o
172

173 174 175 176 177
ifeq ($(CONFIG_DRM_I915_GVT),y)
i915-y += intel_gvt.o
include $(src)/gvt/Makefile
endif

178 179 180
# LPE Audio for VLV and CHT
i915-y += intel_lpe_audio.o

181
obj-$(CONFIG_DRM_I915) += i915.o