xref: /linux/drivers/gpu/drm/Makefile (revision 07f0148aafe8c95a3a76cd59e9e75b4d78d1d31d)
1# SPDX-License-Identifier: GPL-2.0
2
3# Makefile for the drm device driver.  This driver provides support for the
4# Direct Rendering Infrastructure (DRI) in XFree86 4.1.0 and higher.
5
6CFLAGS-$(CONFIG_DRM_USE_DYNAMIC_DEBUG)	+= -DDYNAMIC_DEBUG_MODULE
7
8drm-y := \
9	drm_aperture.o \
10	drm_atomic.o \
11	drm_atomic_uapi.o \
12	drm_auth.o \
13	drm_blend.o \
14	drm_bridge.o \
15	drm_cache.o \
16	drm_client.o \
17	drm_client_modeset.o \
18	drm_color_mgmt.o \
19	drm_connector.o \
20	drm_crtc.o \
21	drm_displayid.o \
22	drm_drv.o \
23	drm_dumb_buffers.o \
24	drm_edid.o \
25	drm_encoder.o \
26	drm_file.o \
27	drm_fourcc.o \
28	drm_framebuffer.o \
29	drm_gem.o \
30	drm_ioctl.o \
31	drm_lease.o \
32	drm_managed.o \
33	drm_mm.o \
34	drm_mode_config.o \
35	drm_mode_object.o \
36	drm_modes.o \
37	drm_modeset_lock.o \
38	drm_plane.o \
39	drm_prime.o \
40	drm_print.o \
41	drm_property.o \
42	drm_syncobj.o \
43	drm_sysfs.o \
44	drm_trace_points.o \
45	drm_vblank.o \
46	drm_vblank_work.o \
47	drm_vma_manager.o \
48	drm_writeback.o
49drm-$(CONFIG_DRM_LEGACY) += \
50	drm_agpsupport.o \
51	drm_bufs.o \
52	drm_context.o \
53	drm_dma.o \
54	drm_hashtab.o \
55	drm_irq.o \
56	drm_legacy_misc.o \
57	drm_lock.o \
58	drm_memory.o \
59	drm_scatter.o \
60	drm_vm.o
61drm-$(CONFIG_DRM_LIB_RANDOM) += lib/drm_random.o
62drm-$(CONFIG_COMPAT) += drm_ioc32.o
63drm-$(CONFIG_DRM_PANEL) += drm_panel.o
64drm-$(CONFIG_OF) += drm_of.o
65drm-$(CONFIG_PCI) += drm_pci.o
66drm-$(CONFIG_DEBUG_FS) += \
67	drm_debugfs.o \
68	drm_debugfs_crc.o
69drm-$(CONFIG_DRM_LOAD_EDID_FIRMWARE) += drm_edid_load.o
70drm-$(CONFIG_DRM_PRIVACY_SCREEN) += \
71	drm_privacy_screen.o \
72	drm_privacy_screen_x86.o
73drm-$(CONFIG_DRM_ACCEL) += ../../accel/drm_accel.o
74obj-$(CONFIG_DRM)	+= drm.o
75
76obj-$(CONFIG_DRM_PANEL_ORIENTATION_QUIRKS) += drm_panel_orientation_quirks.o
77
78#
79# Memory-management helpers
80#
81
82obj-$(CONFIG_DRM_BUDDY) += drm_buddy.o
83
84drm_dma_helper-y := drm_gem_dma_helper.o
85drm_dma_helper-$(CONFIG_DRM_KMS_HELPER) += drm_fb_dma_helper.o
86obj-$(CONFIG_DRM_GEM_DMA_HELPER) += drm_dma_helper.o
87
88drm_shmem_helper-y := drm_gem_shmem_helper.o
89obj-$(CONFIG_DRM_GEM_SHMEM_HELPER) += drm_shmem_helper.o
90
91drm_vram_helper-y := drm_gem_vram_helper.o
92obj-$(CONFIG_DRM_VRAM_HELPER) += drm_vram_helper.o
93
94drm_ttm_helper-y := drm_gem_ttm_helper.o
95obj-$(CONFIG_DRM_TTM_HELPER) += drm_ttm_helper.o
96
97#
98# Modesetting helpers
99#
100
101drm_kms_helper-y := \
102	drm_atomic_helper.o \
103	drm_atomic_state_helper.o \
104	drm_bridge_connector.o \
105	drm_crtc_helper.o \
106	drm_damage_helper.o \
107	drm_encoder_slave.o \
108	drm_flip_work.o \
109	drm_format_helper.o \
110	drm_gem_atomic_helper.o \
111	drm_gem_framebuffer_helper.o \
112	drm_kms_helper_common.o \
113	drm_modeset_helper.o \
114	drm_plane_helper.o \
115	drm_probe_helper.o \
116	drm_rect.o \
117	drm_self_refresh_helper.o \
118	drm_simple_kms_helper.o
119drm_kms_helper-$(CONFIG_DRM_PANEL_BRIDGE) += bridge/panel.o
120drm_kms_helper-$(CONFIG_DRM_FBDEV_EMULATION) += \
121	drm_fbdev_generic.o \
122	drm_fb_helper.o
123obj-$(CONFIG_DRM_KMS_HELPER) += drm_kms_helper.o
124
125#
126# Drivers and the rest
127#
128
129obj-$(CONFIG_DRM_KUNIT_TEST) += tests/
130
131obj-$(CONFIG_DRM_MIPI_DBI) += drm_mipi_dbi.o
132obj-$(CONFIG_DRM_MIPI_DSI) += drm_mipi_dsi.o
133obj-y			+= arm/
134obj-y			+= display/
135obj-$(CONFIG_DRM_TTM)	+= ttm/
136obj-$(CONFIG_DRM_SCHED)	+= scheduler/
137obj-$(CONFIG_DRM_TDFX)	+= tdfx/
138obj-$(CONFIG_DRM_R128)	+= r128/
139obj-$(CONFIG_DRM_RADEON)+= radeon/
140obj-$(CONFIG_DRM_AMDGPU)+= amd/amdgpu/
141obj-$(CONFIG_DRM_MGA)	+= mga/
142obj-$(CONFIG_DRM_I810)	+= i810/
143obj-$(CONFIG_DRM_I915)	+= i915/
144obj-$(CONFIG_DRM_KMB_DISPLAY)  += kmb/
145obj-$(CONFIG_DRM_MGAG200) += mgag200/
146obj-$(CONFIG_DRM_V3D)  += v3d/
147obj-$(CONFIG_DRM_VC4)  += vc4/
148obj-$(CONFIG_DRM_SIS)   += sis/
149obj-$(CONFIG_DRM_SAVAGE)+= savage/
150obj-$(CONFIG_DRM_VMWGFX)+= vmwgfx/
151obj-$(CONFIG_DRM_VIA)	+=via/
152obj-$(CONFIG_DRM_VGEM)	+= vgem/
153obj-$(CONFIG_DRM_VKMS)	+= vkms/
154obj-$(CONFIG_DRM_NOUVEAU) +=nouveau/
155obj-$(CONFIG_DRM_EXYNOS) +=exynos/
156obj-$(CONFIG_DRM_ROCKCHIP) +=rockchip/
157obj-$(CONFIG_DRM_GMA500) += gma500/
158obj-$(CONFIG_DRM_UDL) += udl/
159obj-$(CONFIG_DRM_AST) += ast/
160obj-$(CONFIG_DRM_ARMADA) += armada/
161obj-$(CONFIG_DRM_ATMEL_HLCDC)	+= atmel-hlcdc/
162obj-y			+= rcar-du/
163obj-$(CONFIG_DRM_SHMOBILE) +=shmobile/
164obj-y			+= omapdrm/
165obj-$(CONFIG_DRM_SUN4I) += sun4i/
166obj-y			+= tilcdc/
167obj-$(CONFIG_DRM_QXL) += qxl/
168obj-$(CONFIG_DRM_VIRTIO_GPU) += virtio/
169obj-$(CONFIG_DRM_MSM) += msm/
170obj-$(CONFIG_DRM_TEGRA) += tegra/
171obj-$(CONFIG_DRM_STM) += stm/
172obj-$(CONFIG_DRM_STI) += sti/
173obj-y 			+= imx/
174obj-$(CONFIG_DRM_INGENIC) += ingenic/
175obj-$(CONFIG_DRM_LOGICVC) += logicvc/
176obj-$(CONFIG_DRM_MEDIATEK) += mediatek/
177obj-$(CONFIG_DRM_MESON)	+= meson/
178obj-y			+= i2c/
179obj-y			+= panel/
180obj-y			+= bridge/
181obj-$(CONFIG_DRM_FSL_DCU) += fsl-dcu/
182obj-$(CONFIG_DRM_ETNAVIV) += etnaviv/
183obj-y			+= hisilicon/
184obj-y			+= mxsfb/
185obj-y			+= tiny/
186obj-$(CONFIG_DRM_PL111) += pl111/
187obj-$(CONFIG_DRM_TVE200) += tve200/
188obj-$(CONFIG_DRM_XEN) += xen/
189obj-$(CONFIG_DRM_VBOXVIDEO) += vboxvideo/
190obj-$(CONFIG_DRM_LIMA)  += lima/
191obj-$(CONFIG_DRM_PANFROST) += panfrost/
192obj-$(CONFIG_DRM_ASPEED_GFX) += aspeed/
193obj-$(CONFIG_DRM_MCDE) += mcde/
194obj-$(CONFIG_DRM_TIDSS) += tidss/
195obj-y			+= xlnx/
196obj-y			+= gud/
197obj-$(CONFIG_DRM_HYPERV) += hyperv/
198obj-y			+= solomon/
199obj-$(CONFIG_DRM_SPRD) += sprd/
200