xref: /linux/drivers/gpu/drm/Makefile (revision f29f24b5568fd6169e0363c78f1a80db38d0e7e9)
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_auth.o drm_cache.o \
7		drm_file.o drm_gem.o drm_ioctl.o drm_irq.o \
8		drm_memory.o drm_drv.o drm_pci.o \
9		drm_sysfs.o drm_hashtab.o drm_mm.o \
10		drm_crtc.o drm_fourcc.o drm_modes.o drm_edid.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_atomic_uapi.o
21
22drm-$(CONFIG_DRM_LEGACY) += drm_legacy_misc.o drm_bufs.o drm_context.o drm_dma.o drm_scatter.o drm_lock.o
23drm-$(CONFIG_DRM_LIB_RANDOM) += lib/drm_random.o
24drm-$(CONFIG_DRM_VM) += drm_vm.o
25drm-$(CONFIG_COMPAT) += drm_ioc32.o
26drm-$(CONFIG_DRM_GEM_CMA_HELPER) += drm_gem_cma_helper.o
27drm-$(CONFIG_DRM_GEM_SHMEM_HELPER) += drm_gem_shmem_helper.o
28drm-$(CONFIG_DRM_ATI_PCIGART) += ati_pcigart.o
29drm-$(CONFIG_DRM_PANEL) += drm_panel.o
30drm-$(CONFIG_OF) += drm_of.o
31drm-$(CONFIG_AGP) += drm_agpsupport.o
32drm-$(CONFIG_DEBUG_FS) += drm_debugfs.o drm_debugfs_crc.o
33drm-$(CONFIG_DRM_LOAD_EDID_FIRMWARE) += drm_edid_load.o
34
35drm_kms_helper-y := drm_crtc_helper.o drm_dp_helper.o drm_dsc.o drm_probe_helper.o \
36		drm_plane_helper.o drm_dp_mst_topology.o drm_atomic_helper.o \
37		drm_kms_helper_common.o drm_dp_dual_mode_helper.o \
38		drm_simple_kms_helper.o drm_modeset_helper.o \
39		drm_scdc_helper.o drm_gem_framebuffer_helper.o \
40		drm_atomic_state_helper.o drm_damage_helper.o \
41		drm_format_helper.o
42
43drm_kms_helper-$(CONFIG_DRM_PANEL_BRIDGE) += bridge/panel.o
44drm_kms_helper-$(CONFIG_DRM_FBDEV_EMULATION) += drm_fb_helper.o
45drm_kms_helper-$(CONFIG_DRM_KMS_CMA_HELPER) += drm_fb_cma_helper.o
46drm_kms_helper-$(CONFIG_DRM_DP_AUX_CHARDEV) += drm_dp_aux_dev.o
47drm_kms_helper-$(CONFIG_DRM_DP_CEC) += drm_dp_cec.o
48
49obj-$(CONFIG_DRM_KMS_HELPER) += drm_kms_helper.o
50obj-$(CONFIG_DRM_DEBUG_SELFTEST) += selftests/
51
52obj-$(CONFIG_DRM)	+= drm.o
53obj-$(CONFIG_DRM_MIPI_DSI) += drm_mipi_dsi.o
54obj-$(CONFIG_DRM_PANEL_ORIENTATION_QUIRKS) += drm_panel_orientation_quirks.o
55obj-y			+= arm/
56obj-$(CONFIG_DRM_TTM)	+= ttm/
57obj-$(CONFIG_DRM_SCHED)	+= scheduler/
58obj-$(CONFIG_DRM_TDFX)	+= tdfx/
59obj-$(CONFIG_DRM_R128)	+= r128/
60obj-$(CONFIG_HSA_AMD) += amd/amdkfd/
61obj-$(CONFIG_DRM_RADEON)+= radeon/
62obj-$(CONFIG_DRM_AMDGPU)+= amd/amdgpu/
63obj-$(CONFIG_DRM_MGA)	+= mga/
64obj-$(CONFIG_DRM_I810)	+= i810/
65obj-$(CONFIG_DRM_I915)	+= i915/
66obj-$(CONFIG_DRM_MGAG200) += mgag200/
67obj-$(CONFIG_DRM_V3D)  += v3d/
68obj-$(CONFIG_DRM_VC4)  += vc4/
69obj-$(CONFIG_DRM_CIRRUS_QEMU) += cirrus/
70obj-$(CONFIG_DRM_SIS)   += sis/
71obj-$(CONFIG_DRM_SAVAGE)+= savage/
72obj-$(CONFIG_DRM_VMWGFX)+= vmwgfx/
73obj-$(CONFIG_DRM_VIA)	+=via/
74obj-$(CONFIG_DRM_VGEM)	+= vgem/
75obj-$(CONFIG_DRM_VKMS)	+= vkms/
76obj-$(CONFIG_DRM_NOUVEAU) +=nouveau/
77obj-$(CONFIG_DRM_EXYNOS) +=exynos/
78obj-$(CONFIG_DRM_ROCKCHIP) +=rockchip/
79obj-$(CONFIG_DRM_GMA500) += gma500/
80obj-$(CONFIG_DRM_UDL) += udl/
81obj-$(CONFIG_DRM_AST) += ast/
82obj-$(CONFIG_DRM_ARMADA) += armada/
83obj-$(CONFIG_DRM_ATMEL_HLCDC)	+= atmel-hlcdc/
84obj-y			+= rcar-du/
85obj-$(CONFIG_DRM_SHMOBILE) +=shmobile/
86obj-y			+= omapdrm/
87obj-$(CONFIG_DRM_SUN4I) += sun4i/
88obj-y			+= tilcdc/
89obj-$(CONFIG_DRM_QXL) += qxl/
90obj-$(CONFIG_DRM_BOCHS) += bochs/
91obj-$(CONFIG_DRM_VIRTIO_GPU) += virtio/
92obj-$(CONFIG_DRM_MSM) += msm/
93obj-$(CONFIG_DRM_TEGRA) += tegra/
94obj-$(CONFIG_DRM_STM) += stm/
95obj-$(CONFIG_DRM_STI) += sti/
96obj-$(CONFIG_DRM_IMX) += imx/
97obj-$(CONFIG_DRM_MEDIATEK) += mediatek/
98obj-$(CONFIG_DRM_MESON)	+= meson/
99obj-y			+= i2c/
100obj-y			+= panel/
101obj-y			+= bridge/
102obj-$(CONFIG_DRM_FSL_DCU) += fsl-dcu/
103obj-$(CONFIG_DRM_ETNAVIV) += etnaviv/
104obj-$(CONFIG_DRM_ARCPGU)+= arc/
105obj-y			+= hisilicon/
106obj-$(CONFIG_DRM_ZTE)	+= zte/
107obj-$(CONFIG_DRM_MXSFB)	+= mxsfb/
108obj-$(CONFIG_DRM_TINYDRM) += tinydrm/
109obj-$(CONFIG_DRM_PL111) += pl111/
110obj-$(CONFIG_DRM_TVE200) += tve200/
111obj-$(CONFIG_DRM_XEN) += xen/
112obj-$(CONFIG_DRM_VBOXVIDEO) += vboxvideo/
113obj-$(CONFIG_DRM_LIMA)  += lima/
114obj-$(CONFIG_DRM_PANFROST) += panfrost/
115obj-$(CONFIG_DRM_ASPEED_GFX) += aspeed/
116