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