xref: /openbmc/linux/drivers/gpu/drm/Makefile (revision 711aab1d)
1
2# Makefile for the drm device driver.  This driver provides support for the
3# Direct Rendering Infrastructure (DRI) in XFree86 4.1.0 and higher.
4
5drm-y       :=	drm_auth.o drm_bufs.o drm_cache.o \
6		drm_context.o drm_dma.o \
7		drm_file.o drm_gem.o drm_ioctl.o drm_irq.o \
8		drm_lock.o drm_memory.o drm_drv.o \
9		drm_scatter.o drm_pci.o \
10		drm_sysfs.o drm_hashtab.o drm_mm.o \
11		drm_crtc.o drm_fourcc.o drm_modes.o drm_edid.o \
12		drm_info.o drm_encoder_slave.o \
13		drm_trace_points.o drm_global.o drm_prime.o \
14		drm_rect.o drm_vma_manager.o drm_flip_work.o \
15		drm_modeset_lock.o drm_atomic.o drm_bridge.o \
16		drm_framebuffer.o drm_connector.o drm_blend.o \
17		drm_encoder.o drm_mode_object.o drm_property.o \
18		drm_plane.o drm_color_mgmt.o drm_print.o \
19		drm_dumb_buffers.o drm_mode_config.o drm_vblank.o \
20		drm_syncobj.o
21
22drm-$(CONFIG_DRM_LIB_RANDOM) += lib/drm_random.o
23drm-$(CONFIG_DRM_VM) += drm_vm.o
24drm-$(CONFIG_COMPAT) += drm_ioc32.o
25drm-$(CONFIG_DRM_GEM_CMA_HELPER) += drm_gem_cma_helper.o
26drm-$(CONFIG_PCI) += ati_pcigart.o
27drm-$(CONFIG_DRM_PANEL) += drm_panel.o
28drm-$(CONFIG_OF) += drm_of.o
29drm-$(CONFIG_AGP) += drm_agpsupport.o
30drm-$(CONFIG_DEBUG_FS) += drm_debugfs.o drm_debugfs_crc.o
31
32drm_kms_helper-y := drm_crtc_helper.o drm_dp_helper.o drm_probe_helper.o \
33		drm_plane_helper.o drm_dp_mst_topology.o drm_atomic_helper.o \
34		drm_kms_helper_common.o drm_dp_dual_mode_helper.o \
35		drm_simple_kms_helper.o drm_modeset_helper.o \
36		drm_scdc_helper.o drm_gem_framebuffer_helper.o
37
38drm_kms_helper-$(CONFIG_DRM_PANEL_BRIDGE) += bridge/panel.o
39drm_kms_helper-$(CONFIG_DRM_LOAD_EDID_FIRMWARE) += drm_edid_load.o
40drm_kms_helper-$(CONFIG_DRM_FBDEV_EMULATION) += drm_fb_helper.o
41drm_kms_helper-$(CONFIG_DRM_KMS_CMA_HELPER) += drm_fb_cma_helper.o
42drm_kms_helper-$(CONFIG_DRM_DP_AUX_CHARDEV) += drm_dp_aux_dev.o
43
44obj-$(CONFIG_DRM_KMS_HELPER) += drm_kms_helper.o
45obj-$(CONFIG_DRM_DEBUG_MM_SELFTEST) += selftests/
46
47CFLAGS_drm_trace_points.o := -I$(src)
48
49obj-$(CONFIG_DRM)	+= drm.o
50obj-$(CONFIG_DRM_MIPI_DSI) += drm_mipi_dsi.o
51obj-$(CONFIG_DRM_ARM)	+= arm/
52obj-$(CONFIG_DRM_TTM)	+= ttm/
53obj-$(CONFIG_DRM_TDFX)	+= tdfx/
54obj-$(CONFIG_DRM_R128)	+= r128/
55obj-$(CONFIG_HSA_AMD) += amd/amdkfd/
56obj-$(CONFIG_DRM_RADEON)+= radeon/
57obj-$(CONFIG_DRM_AMDGPU)+= amd/amdgpu/
58obj-$(CONFIG_DRM_MGA)	+= mga/
59obj-$(CONFIG_DRM_I810)	+= i810/
60obj-$(CONFIG_DRM_I915)	+= i915/
61obj-$(CONFIG_DRM_MGAG200) += mgag200/
62obj-$(CONFIG_DRM_VC4)  += vc4/
63obj-$(CONFIG_DRM_CIRRUS_QEMU) += cirrus/
64obj-$(CONFIG_DRM_SIS)   += sis/
65obj-$(CONFIG_DRM_SAVAGE)+= savage/
66obj-$(CONFIG_DRM_VMWGFX)+= vmwgfx/
67obj-$(CONFIG_DRM_VIA)	+=via/
68obj-$(CONFIG_DRM_VGEM)	+= vgem/
69obj-$(CONFIG_DRM_NOUVEAU) +=nouveau/
70obj-$(CONFIG_DRM_EXYNOS) +=exynos/
71obj-$(CONFIG_DRM_ROCKCHIP) +=rockchip/
72obj-$(CONFIG_DRM_GMA500) += gma500/
73obj-$(CONFIG_DRM_UDL) += udl/
74obj-$(CONFIG_DRM_AST) += ast/
75obj-$(CONFIG_DRM_ARMADA) += armada/
76obj-$(CONFIG_DRM_ATMEL_HLCDC)	+= atmel-hlcdc/
77obj-$(CONFIG_DRM_RCAR_DU) += rcar-du/
78obj-$(CONFIG_DRM_SHMOBILE) +=shmobile/
79obj-y			+= omapdrm/
80obj-$(CONFIG_DRM_SUN4I) += sun4i/
81obj-y			+= tilcdc/
82obj-$(CONFIG_DRM_QXL) += qxl/
83obj-$(CONFIG_DRM_BOCHS) += bochs/
84obj-$(CONFIG_DRM_VIRTIO_GPU) += virtio/
85obj-$(CONFIG_DRM_MSM) += msm/
86obj-$(CONFIG_DRM_TEGRA) += tegra/
87obj-$(CONFIG_DRM_STM) += stm/
88obj-$(CONFIG_DRM_STI) += sti/
89obj-$(CONFIG_DRM_IMX) += imx/
90obj-$(CONFIG_DRM_MEDIATEK) += mediatek/
91obj-$(CONFIG_DRM_MESON)	+= meson/
92obj-y			+= i2c/
93obj-y			+= panel/
94obj-y			+= bridge/
95obj-$(CONFIG_DRM_FSL_DCU) += fsl-dcu/
96obj-$(CONFIG_DRM_ETNAVIV) += etnaviv/
97obj-$(CONFIG_DRM_ARCPGU)+= arc/
98obj-y			+= hisilicon/
99obj-$(CONFIG_DRM_ZTE)	+= zte/
100obj-$(CONFIG_DRM_MXSFB)	+= mxsfb/
101obj-$(CONFIG_DRM_TINYDRM) += tinydrm/
102obj-$(CONFIG_DRM_PL111) += pl111/
103