1 # SPDX-License-Identifier: GPL-2.0
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.
6 CFLAGS-$(CONFIG_DRM_USE_DYNAMIC_DEBUG) += -DDYNAMIC_DEBUG_MODULE
17 drm_client_modeset.o \
50 drm-$(CONFIG_DRM_LEGACY) += \
62 drm-$(CONFIG_DRM_LIB_RANDOM) += lib/drm_random.o
63 drm-$(CONFIG_COMPAT) += drm_ioc32.o
64 drm-$(CONFIG_DRM_PANEL) += drm_panel.o
65 drm-$(CONFIG_OF) += drm_of.o
66 drm-$(CONFIG_PCI) += drm_pci.o
67 drm-$(CONFIG_DEBUG_FS) += \
70 drm-$(CONFIG_DRM_LOAD_EDID_FIRMWARE) += drm_edid_load.o
71 drm-$(CONFIG_DRM_PRIVACY_SCREEN) += \
72 drm_privacy_screen.o \
73 drm_privacy_screen_x86.o
74 drm-$(CONFIG_DRM_ACCEL) += ../../accel/drm_accel.o
75 obj-$(CONFIG_DRM) += drm.o
77 obj-$(CONFIG_DRM_PANEL_ORIENTATION_QUIRKS) += drm_panel_orientation_quirks.o
80 # Memory-management helpers
83 obj-$(CONFIG_DRM_EXEC) += drm_exec.o
85 obj-$(CONFIG_DRM_BUDDY) += drm_buddy.o
87 drm_dma_helper-y := drm_gem_dma_helper.o
88 drm_dma_helper-$(CONFIG_DRM_FBDEV_EMULATION) += drm_fbdev_dma.o
89 drm_dma_helper-$(CONFIG_DRM_KMS_HELPER) += drm_fb_dma_helper.o
90 obj-$(CONFIG_DRM_GEM_DMA_HELPER) += drm_dma_helper.o
92 drm_shmem_helper-y := drm_gem_shmem_helper.o
93 obj-$(CONFIG_DRM_GEM_SHMEM_HELPER) += drm_shmem_helper.o
95 drm_suballoc_helper-y := drm_suballoc.o
96 obj-$(CONFIG_DRM_SUBALLOC_HELPER) += drm_suballoc_helper.o
98 drm_vram_helper-y := drm_gem_vram_helper.o
99 obj-$(CONFIG_DRM_VRAM_HELPER) += drm_vram_helper.o
101 drm_ttm_helper-y := drm_gem_ttm_helper.o
102 obj-$(CONFIG_DRM_TTM_HELPER) += drm_ttm_helper.o
105 # Modesetting helpers
108 drm_kms_helper-y := \
109 drm_atomic_helper.o \
110 drm_atomic_state_helper.o \
111 drm_bridge_connector.o \
113 drm_damage_helper.o \
114 drm_encoder_slave.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 \
124 drm_self_refresh_helper.o \
125 drm_simple_kms_helper.o
126 drm_kms_helper-$(CONFIG_DRM_PANEL_BRIDGE) += bridge/panel.o
127 drm_kms_helper-$(CONFIG_DRM_FBDEV_EMULATION) += \
128 drm_fbdev_generic.o \
130 obj-$(CONFIG_DRM_KMS_HELPER) += drm_kms_helper.o
133 # Drivers and the rest
138 obj-$(CONFIG_DRM_MIPI_DBI) += drm_mipi_dbi.o
139 obj-$(CONFIG_DRM_MIPI_DSI) += drm_mipi_dsi.o
142 obj-$(CONFIG_DRM_TTM) += ttm/
143 obj-$(CONFIG_DRM_SCHED) += scheduler/
144 obj-$(CONFIG_DRM_RADEON)+= radeon/
145 obj-$(CONFIG_DRM_AMDGPU)+= amd/amdgpu/
146 obj-$(CONFIG_DRM_AMDGPU)+= amd/amdxcp/
147 obj-$(CONFIG_DRM_I915) += i915/
148 obj-$(CONFIG_DRM_KMB_DISPLAY) += kmb/
149 obj-$(CONFIG_DRM_MGAG200) += mgag200/
150 obj-$(CONFIG_DRM_V3D) += v3d/
151 obj-$(CONFIG_DRM_VC4) += vc4/
152 obj-$(CONFIG_DRM_VMWGFX)+= vmwgfx/
153 obj-$(CONFIG_DRM_VGEM) += vgem/
154 obj-$(CONFIG_DRM_VKMS) += vkms/
155 obj-$(CONFIG_DRM_NOUVEAU) +=nouveau/
156 obj-$(CONFIG_DRM_EXYNOS) +=exynos/
157 obj-$(CONFIG_DRM_ROCKCHIP) +=rockchip/
158 obj-$(CONFIG_DRM_GMA500) += gma500/
159 obj-$(CONFIG_DRM_UDL) += udl/
160 obj-$(CONFIG_DRM_AST) += ast/
161 obj-$(CONFIG_DRM_ARMADA) += armada/
162 obj-$(CONFIG_DRM_ATMEL_HLCDC) += atmel-hlcdc/
165 obj-$(CONFIG_DRM_SUN4I) += sun4i/
167 obj-$(CONFIG_DRM_QXL) += qxl/
168 obj-$(CONFIG_DRM_VIRTIO_GPU) += virtio/
169 obj-$(CONFIG_DRM_MSM) += msm/
170 obj-$(CONFIG_DRM_TEGRA) += tegra/
171 obj-$(CONFIG_DRM_STM) += stm/
172 obj-$(CONFIG_DRM_STI) += sti/
174 obj-$(CONFIG_DRM_INGENIC) += ingenic/
175 obj-$(CONFIG_DRM_LOGICVC) += logicvc/
176 obj-$(CONFIG_DRM_MEDIATEK) += mediatek/
177 obj-$(CONFIG_DRM_MESON) += meson/
181 obj-$(CONFIG_DRM_FSL_DCU) += fsl-dcu/
182 obj-$(CONFIG_DRM_ETNAVIV) += etnaviv/
186 obj-$(CONFIG_DRM_PL111) += pl111/
187 obj-$(CONFIG_DRM_TVE200) += tve200/
188 obj-$(CONFIG_DRM_XEN) += xen/
189 obj-$(CONFIG_DRM_VBOXVIDEO) += vboxvideo/
190 obj-$(CONFIG_DRM_LIMA) += lima/
191 obj-$(CONFIG_DRM_PANFROST) += panfrost/
192 obj-$(CONFIG_DRM_ASPEED_GFX) += aspeed/
193 obj-$(CONFIG_DRM_MCDE) += mcde/
194 obj-$(CONFIG_DRM_TIDSS) += tidss/
197 obj-$(CONFIG_DRM_HYPERV) += hyperv/
199 obj-$(CONFIG_DRM_SPRD) += sprd/
200 obj-$(CONFIG_DRM_LOONGSON) += loongson/