xref: /linux/drivers/gpu/drm/Makefile (revision bb5b94f5bbe75470912b70fb08880fc5273aa62d)
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
6drm-y       :=	drm_aperture.o drm_auth.o drm_cache.o \
7		drm_file.o drm_gem.o drm_ioctl.o drm_irq.o \
8		drm_drv.o \
9		drm_sysfs.o drm_hashtab.o drm_mm.o \
10		drm_crtc.o drm_fourcc.o drm_modes.o drm_edid.o drm_displayid.o \
11		drm_encoder_slave.o \
12		drm_trace_points.o drm_prime.o \
13		drm_rect.o drm_vma_manager.o drm_flip_work.o \
14		drm_modeset_lock.o drm_atomic.o drm_bridge.o \
15		drm_framebuffer.o drm_connector.o drm_blend.o \
16		drm_encoder.o drm_mode_object.o drm_property.o \
17		drm_plane.o drm_color_mgmt.o drm_print.o \
18		drm_dumb_buffers.o drm_mode_config.o drm_vblank.o \
19		drm_syncobj.o drm_lease.o drm_writeback.o drm_client.o \
20		drm_client_modeset.o drm_atomic_uapi.o drm_hdcp.o \
21		drm_managed.o drm_vblank_work.o
22
23drm-$(CONFIG_DRM_LEGACY) += drm_agpsupport.o drm_bufs.o drm_context.o drm_dma.o \
24			    drm_legacy_misc.o drm_lock.o drm_memory.o drm_scatter.o \
25			    drm_vm.o
26drm-$(CONFIG_DRM_LIB_RANDOM) += lib/drm_random.o
27drm-$(CONFIG_COMPAT) += drm_ioc32.o
28drm-$(CONFIG_DRM_GEM_CMA_HELPER) += drm_gem_cma_helper.o
29drm-$(CONFIG_DRM_GEM_SHMEM_HELPER) += drm_gem_shmem_helper.o
30drm-$(CONFIG_DRM_PANEL) += drm_panel.o
31drm-$(CONFIG_OF) += drm_of.o
32drm-$(CONFIG_PCI) += drm_pci.o
33drm-$(CONFIG_DEBUG_FS) += drm_debugfs.o drm_debugfs_crc.o
34drm-$(CONFIG_DRM_LOAD_EDID_FIRMWARE) += drm_edid_load.o
35
36drm_vram_helper-y := drm_gem_vram_helper.o
37obj-$(CONFIG_DRM_VRAM_HELPER) += drm_vram_helper.o
38
39drm_ttm_helper-y := drm_gem_ttm_helper.o
40obj-$(CONFIG_DRM_TTM_HELPER) += drm_ttm_helper.o
41
42drm_kms_helper-y := drm_bridge_connector.o drm_crtc_helper.o drm_dp_helper.o \
43		drm_dsc.o drm_probe_helper.o \
44		drm_plane_helper.o drm_dp_mst_topology.o drm_atomic_helper.o \
45		drm_kms_helper_common.o drm_dp_dual_mode_helper.o \
46		drm_simple_kms_helper.o drm_modeset_helper.o \
47		drm_scdc_helper.o drm_gem_atomic_helper.o \
48		drm_gem_framebuffer_helper.o \
49		drm_atomic_state_helper.o drm_damage_helper.o \
50		drm_format_helper.o drm_self_refresh_helper.o
51
52drm_kms_helper-$(CONFIG_DRM_PANEL_BRIDGE) += bridge/panel.o
53drm_kms_helper-$(CONFIG_DRM_FBDEV_EMULATION) += drm_fb_helper.o
54drm_kms_helper-$(CONFIG_DRM_KMS_CMA_HELPER) += drm_fb_cma_helper.o
55drm_kms_helper-$(CONFIG_DRM_DP_AUX_CHARDEV) += drm_dp_aux_dev.o
56drm_kms_helper-$(CONFIG_DRM_DP_CEC) += drm_dp_cec.o
57
58obj-$(CONFIG_DRM_KMS_HELPER) += drm_kms_helper.o
59obj-$(CONFIG_DRM_DEBUG_SELFTEST) += selftests/
60
61obj-$(CONFIG_DRM)	+= drm.o
62obj-$(CONFIG_DRM_MIPI_DBI) += drm_mipi_dbi.o
63obj-$(CONFIG_DRM_MIPI_DSI) += drm_mipi_dsi.o
64obj-$(CONFIG_DRM_PANEL_ORIENTATION_QUIRKS) += drm_panel_orientation_quirks.o
65obj-y			+= arm/
66obj-$(CONFIG_DRM_TTM)	+= ttm/
67obj-$(CONFIG_DRM_SCHED)	+= scheduler/
68obj-$(CONFIG_DRM_TDFX)	+= tdfx/
69obj-$(CONFIG_DRM_R128)	+= r128/
70obj-$(CONFIG_DRM_RADEON)+= radeon/
71obj-$(CONFIG_DRM_AMDGPU)+= amd/amdgpu/
72obj-$(CONFIG_DRM_MGA)	+= mga/
73obj-$(CONFIG_DRM_I810)	+= i810/
74obj-$(CONFIG_DRM_I915)	+= i915/
75obj-$(CONFIG_DRM_KMB_DISPLAY)  += kmb/
76obj-$(CONFIG_DRM_MGAG200) += mgag200/
77obj-$(CONFIG_DRM_V3D)  += v3d/
78obj-$(CONFIG_DRM_VC4)  += vc4/
79obj-$(CONFIG_DRM_SIS)   += sis/
80obj-$(CONFIG_DRM_SAVAGE)+= savage/
81obj-$(CONFIG_DRM_VMWGFX)+= vmwgfx/
82obj-$(CONFIG_DRM_VIA)	+=via/
83obj-$(CONFIG_DRM_VGEM)	+= vgem/
84obj-$(CONFIG_DRM_VKMS)	+= vkms/
85obj-$(CONFIG_DRM_NOUVEAU) +=nouveau/
86obj-$(CONFIG_DRM_EXYNOS) +=exynos/
87obj-$(CONFIG_DRM_ROCKCHIP) +=rockchip/
88obj-$(CONFIG_DRM_GMA500) += gma500/
89obj-$(CONFIG_DRM_UDL) += udl/
90obj-$(CONFIG_DRM_AST) += ast/
91obj-$(CONFIG_DRM_ARMADA) += armada/
92obj-$(CONFIG_DRM_ATMEL_HLCDC)	+= atmel-hlcdc/
93obj-y			+= rcar-du/
94obj-$(CONFIG_DRM_SHMOBILE) +=shmobile/
95obj-y			+= omapdrm/
96obj-$(CONFIG_DRM_SUN4I) += sun4i/
97obj-y			+= tilcdc/
98obj-$(CONFIG_DRM_QXL) += qxl/
99obj-$(CONFIG_DRM_BOCHS) += bochs/
100obj-$(CONFIG_DRM_VIRTIO_GPU) += virtio/
101obj-$(CONFIG_DRM_MSM) += msm/
102obj-$(CONFIG_DRM_TEGRA) += tegra/
103obj-$(CONFIG_DRM_STM) += stm/
104obj-$(CONFIG_DRM_STI) += sti/
105obj-y 			+= imx/
106obj-$(CONFIG_DRM_INGENIC) += ingenic/
107obj-$(CONFIG_DRM_MEDIATEK) += mediatek/
108obj-$(CONFIG_DRM_MESON)	+= meson/
109obj-y			+= i2c/
110obj-y			+= panel/
111obj-y			+= bridge/
112obj-$(CONFIG_DRM_FSL_DCU) += fsl-dcu/
113obj-$(CONFIG_DRM_ETNAVIV) += etnaviv/
114obj-y			+= hisilicon/
115obj-$(CONFIG_DRM_ZTE)	+= zte/
116obj-$(CONFIG_DRM_MXSFB)	+= mxsfb/
117obj-y			+= tiny/
118obj-$(CONFIG_DRM_PL111) += pl111/
119obj-$(CONFIG_DRM_TVE200) += tve200/
120obj-$(CONFIG_DRM_XEN) += xen/
121obj-$(CONFIG_DRM_VBOXVIDEO) += vboxvideo/
122obj-$(CONFIG_DRM_LIMA)  += lima/
123obj-$(CONFIG_DRM_PANFROST) += panfrost/
124obj-$(CONFIG_DRM_ASPEED_GFX) += aspeed/
125obj-$(CONFIG_DRM_MCDE) += mcde/
126obj-$(CONFIG_DRM_TIDSS) += tidss/
127obj-y			+= xlnx/
128obj-y			+= gud/
129obj-$(CONFIG_DRM_HYPERV) += hyperv/
130