xref: /openbmc/linux/drivers/gpu/drm/Makefile (revision 8957261c)
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_gpuva_mgr.o \
49	drm_writeback.o
50drm-$(CONFIG_DRM_LEGACY) += \
51	drm_agpsupport.o \
52	drm_bufs.o \
53	drm_context.o \
54	drm_dma.o \
55	drm_hashtab.o \
56	drm_irq.o \
57	drm_legacy_misc.o \
58	drm_lock.o \
59	drm_memory.o \
60	drm_scatter.o \
61	drm_vm.o
62drm-$(CONFIG_DRM_LIB_RANDOM) += lib/drm_random.o
63drm-$(CONFIG_COMPAT) += drm_ioc32.o
64drm-$(CONFIG_DRM_PANEL) += drm_panel.o
65drm-$(CONFIG_OF) += drm_of.o
66drm-$(CONFIG_PCI) += drm_pci.o
67drm-$(CONFIG_DEBUG_FS) += \
68	drm_debugfs.o \
69	drm_debugfs_crc.o
70drm-$(CONFIG_DRM_LOAD_EDID_FIRMWARE) += drm_edid_load.o
71drm-$(CONFIG_DRM_PRIVACY_SCREEN) += \
72	drm_privacy_screen.o \
73	drm_privacy_screen_x86.o
74drm-$(CONFIG_DRM_ACCEL) += ../../accel/drm_accel.o
75obj-$(CONFIG_DRM)	+= drm.o
76
77obj-$(CONFIG_DRM_PANEL_ORIENTATION_QUIRKS) += drm_panel_orientation_quirks.o
78
79#
80# Memory-management helpers
81#
82#
83obj-$(CONFIG_DRM_EXEC) += drm_exec.o
84
85obj-$(CONFIG_DRM_BUDDY) += drm_buddy.o
86
87drm_dma_helper-y := drm_gem_dma_helper.o
88drm_dma_helper-$(CONFIG_DRM_FBDEV_EMULATION) += drm_fbdev_dma.o
89drm_dma_helper-$(CONFIG_DRM_KMS_HELPER) += drm_fb_dma_helper.o
90obj-$(CONFIG_DRM_GEM_DMA_HELPER) += drm_dma_helper.o
91
92drm_shmem_helper-y := drm_gem_shmem_helper.o
93obj-$(CONFIG_DRM_GEM_SHMEM_HELPER) += drm_shmem_helper.o
94
95drm_suballoc_helper-y := drm_suballoc.o
96obj-$(CONFIG_DRM_SUBALLOC_HELPER) += drm_suballoc_helper.o
97
98drm_vram_helper-y := drm_gem_vram_helper.o
99obj-$(CONFIG_DRM_VRAM_HELPER) += drm_vram_helper.o
100
101drm_ttm_helper-y := drm_gem_ttm_helper.o
102obj-$(CONFIG_DRM_TTM_HELPER) += drm_ttm_helper.o
103
104#
105# Modesetting helpers
106#
107
108drm_kms_helper-y := \
109	drm_atomic_helper.o \
110	drm_atomic_state_helper.o \
111	drm_bridge_connector.o \
112	drm_crtc_helper.o \
113	drm_damage_helper.o \
114	drm_encoder_slave.o \
115	drm_flip_work.o \
116	drm_format_helper.o \
117	drm_gem_atomic_helper.o \
118	drm_gem_framebuffer_helper.o \
119	drm_kms_helper_common.o \
120	drm_modeset_helper.o \
121	drm_plane_helper.o \
122	drm_probe_helper.o \
123	drm_rect.o \
124	drm_self_refresh_helper.o \
125	drm_simple_kms_helper.o
126drm_kms_helper-$(CONFIG_DRM_PANEL_BRIDGE) += bridge/panel.o
127drm_kms_helper-$(CONFIG_DRM_FBDEV_EMULATION) += \
128	drm_fbdev_generic.o \
129	drm_fb_helper.o
130obj-$(CONFIG_DRM_KMS_HELPER) += drm_kms_helper.o
131
132#
133# Drivers and the rest
134#
135
136obj-y			+= tests/
137
138obj-$(CONFIG_DRM_MIPI_DBI) += drm_mipi_dbi.o
139obj-$(CONFIG_DRM_MIPI_DSI) += drm_mipi_dsi.o
140obj-y			+= arm/
141obj-y			+= display/
142obj-$(CONFIG_DRM_TTM)	+= ttm/
143obj-$(CONFIG_DRM_SCHED)	+= scheduler/
144obj-$(CONFIG_DRM_RADEON)+= radeon/
145obj-$(CONFIG_DRM_AMDGPU)+= amd/amdgpu/
146obj-$(CONFIG_DRM_AMDGPU)+= amd/amdxcp/
147obj-$(CONFIG_DRM_I915)	+= i915/
148obj-$(CONFIG_DRM_KMB_DISPLAY)  += kmb/
149obj-$(CONFIG_DRM_MGAG200) += mgag200/
150obj-$(CONFIG_DRM_V3D)  += v3d/
151obj-$(CONFIG_DRM_VC4)  += vc4/
152obj-$(CONFIG_DRM_VMWGFX)+= vmwgfx/
153obj-$(CONFIG_DRM_VGEM)	+= vgem/
154obj-$(CONFIG_DRM_VKMS)	+= vkms/
155obj-$(CONFIG_DRM_NOUVEAU) +=nouveau/
156obj-$(CONFIG_DRM_EXYNOS) +=exynos/
157obj-$(CONFIG_DRM_ROCKCHIP) +=rockchip/
158obj-$(CONFIG_DRM_GMA500) += gma500/
159obj-$(CONFIG_DRM_UDL) += udl/
160obj-$(CONFIG_DRM_AST) += ast/
161obj-$(CONFIG_DRM_ARMADA) += armada/
162obj-$(CONFIG_DRM_ATMEL_HLCDC)	+= atmel-hlcdc/
163obj-y			+= renesas/
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/
200obj-$(CONFIG_DRM_LOONGSON) += loongson/
201