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 := \ 7 drm_aperture.o \ 8 drm_atomic.o \ 9 drm_atomic_uapi.o \ 10 drm_auth.o \ 11 drm_blend.o \ 12 drm_bridge.o \ 13 drm_cache.o \ 14 drm_client.o \ 15 drm_client_modeset.o \ 16 drm_color_mgmt.o \ 17 drm_connector.o \ 18 drm_crtc.o \ 19 drm_displayid.o \ 20 drm_drv.o \ 21 drm_dumb_buffers.o \ 22 drm_edid.o \ 23 drm_encoder.o \ 24 drm_file.o \ 25 drm_fourcc.o \ 26 drm_framebuffer.o \ 27 drm_gem.o \ 28 drm_ioctl.o \ 29 drm_lease.o \ 30 drm_managed.o \ 31 drm_mm.o \ 32 drm_mode_config.o \ 33 drm_mode_object.o \ 34 drm_modes.o \ 35 drm_modeset_lock.o \ 36 drm_plane.o \ 37 drm_prime.o \ 38 drm_print.o \ 39 drm_property.o \ 40 drm_syncobj.o \ 41 drm_sysfs.o \ 42 drm_trace_points.o \ 43 drm_vblank.o \ 44 drm_vblank_work.o \ 45 drm_vma_manager.o \ 46 drm_writeback.o 47drm-$(CONFIG_DRM_LEGACY) += \ 48 drm_agpsupport.o \ 49 drm_bufs.o \ 50 drm_context.o \ 51 drm_dma.o \ 52 drm_hashtab.o \ 53 drm_irq.o \ 54 drm_legacy_misc.o \ 55 drm_lock.o \ 56 drm_memory.o \ 57 drm_scatter.o \ 58 drm_vm.o 59drm-$(CONFIG_DRM_LIB_RANDOM) += lib/drm_random.o 60drm-$(CONFIG_COMPAT) += drm_ioc32.o 61drm-$(CONFIG_DRM_PANEL) += drm_panel.o 62drm-$(CONFIG_OF) += drm_of.o 63drm-$(CONFIG_PCI) += drm_pci.o 64drm-$(CONFIG_DEBUG_FS) += \ 65 drm_debugfs.o \ 66 drm_debugfs_crc.o 67drm-$(CONFIG_DRM_LOAD_EDID_FIRMWARE) += drm_edid_load.o 68drm-$(CONFIG_DRM_PRIVACY_SCREEN) += \ 69 drm_privacy_screen.o \ 70 drm_privacy_screen_x86.o 71obj-$(CONFIG_DRM) += drm.o 72 73obj-$(CONFIG_DRM_NOMODESET) += drm_nomodeset.o 74obj-$(CONFIG_DRM_PANEL_ORIENTATION_QUIRKS) += drm_panel_orientation_quirks.o 75 76# 77# Memory-management helpers 78# 79 80obj-$(CONFIG_DRM_BUDDY) += drm_buddy.o 81 82drm_dma_helper-y := drm_gem_dma_helper.o 83drm_dma_helper-$(CONFIG_DRM_KMS_HELPER) += drm_fb_dma_helper.o 84obj-$(CONFIG_DRM_GEM_DMA_HELPER) += drm_dma_helper.o 85 86drm_shmem_helper-y := drm_gem_shmem_helper.o 87obj-$(CONFIG_DRM_GEM_SHMEM_HELPER) += drm_shmem_helper.o 88 89drm_vram_helper-y := drm_gem_vram_helper.o 90obj-$(CONFIG_DRM_VRAM_HELPER) += drm_vram_helper.o 91 92drm_ttm_helper-y := drm_gem_ttm_helper.o 93obj-$(CONFIG_DRM_TTM_HELPER) += drm_ttm_helper.o 94 95# 96# Modesetting helpers 97# 98 99drm_kms_helper-y := \ 100 drm_atomic_helper.o \ 101 drm_atomic_state_helper.o \ 102 drm_bridge_connector.o \ 103 drm_crtc_helper.o \ 104 drm_damage_helper.o \ 105 drm_encoder_slave.o \ 106 drm_flip_work.o \ 107 drm_format_helper.o \ 108 drm_gem_atomic_helper.o \ 109 drm_gem_framebuffer_helper.o \ 110 drm_kms_helper_common.o \ 111 drm_modeset_helper.o \ 112 drm_plane_helper.o \ 113 drm_probe_helper.o \ 114 drm_rect.o \ 115 drm_self_refresh_helper.o \ 116 drm_simple_kms_helper.o 117drm_kms_helper-$(CONFIG_DRM_PANEL_BRIDGE) += bridge/panel.o 118drm_kms_helper-$(CONFIG_DRM_FBDEV_EMULATION) += drm_fb_helper.o 119obj-$(CONFIG_DRM_KMS_HELPER) += drm_kms_helper.o 120 121# 122# Drivers and the rest 123# 124 125obj-$(CONFIG_DRM_KUNIT_TEST) += tests/ 126 127obj-$(CONFIG_DRM_MIPI_DBI) += drm_mipi_dbi.o 128obj-$(CONFIG_DRM_MIPI_DSI) += drm_mipi_dsi.o 129obj-y += arm/ 130obj-y += display/ 131obj-$(CONFIG_DRM_TTM) += ttm/ 132obj-$(CONFIG_DRM_SCHED) += scheduler/ 133obj-$(CONFIG_DRM_TDFX) += tdfx/ 134obj-$(CONFIG_DRM_R128) += r128/ 135obj-$(CONFIG_DRM_RADEON)+= radeon/ 136obj-$(CONFIG_DRM_AMDGPU)+= amd/amdgpu/ 137obj-$(CONFIG_DRM_MGA) += mga/ 138obj-$(CONFIG_DRM_I810) += i810/ 139obj-$(CONFIG_DRM_I915) += i915/ 140obj-$(CONFIG_DRM_KMB_DISPLAY) += kmb/ 141obj-$(CONFIG_DRM_MGAG200) += mgag200/ 142obj-$(CONFIG_DRM_V3D) += v3d/ 143obj-$(CONFIG_DRM_VC4) += vc4/ 144obj-$(CONFIG_DRM_SIS) += sis/ 145obj-$(CONFIG_DRM_SAVAGE)+= savage/ 146obj-$(CONFIG_DRM_VMWGFX)+= vmwgfx/ 147obj-$(CONFIG_DRM_VIA) +=via/ 148obj-$(CONFIG_DRM_VGEM) += vgem/ 149obj-$(CONFIG_DRM_VKMS) += vkms/ 150obj-$(CONFIG_DRM_NOUVEAU) +=nouveau/ 151obj-$(CONFIG_DRM_EXYNOS) +=exynos/ 152obj-$(CONFIG_DRM_ROCKCHIP) +=rockchip/ 153obj-$(CONFIG_DRM_GMA500) += gma500/ 154obj-$(CONFIG_DRM_UDL) += udl/ 155obj-$(CONFIG_DRM_AST) += ast/ 156obj-$(CONFIG_DRM_ARMADA) += armada/ 157obj-$(CONFIG_DRM_ATMEL_HLCDC) += atmel-hlcdc/ 158obj-y += rcar-du/ 159obj-$(CONFIG_DRM_SHMOBILE) +=shmobile/ 160obj-y += omapdrm/ 161obj-$(CONFIG_DRM_SUN4I) += sun4i/ 162obj-y += tilcdc/ 163obj-$(CONFIG_DRM_QXL) += qxl/ 164obj-$(CONFIG_DRM_VIRTIO_GPU) += virtio/ 165obj-$(CONFIG_DRM_MSM) += msm/ 166obj-$(CONFIG_DRM_TEGRA) += tegra/ 167obj-$(CONFIG_DRM_STM) += stm/ 168obj-$(CONFIG_DRM_STI) += sti/ 169obj-y += imx/ 170obj-$(CONFIG_DRM_INGENIC) += ingenic/ 171obj-$(CONFIG_DRM_LOGICVC) += logicvc/ 172obj-$(CONFIG_DRM_MEDIATEK) += mediatek/ 173obj-$(CONFIG_DRM_MESON) += meson/ 174obj-y += i2c/ 175obj-y += panel/ 176obj-y += bridge/ 177obj-$(CONFIG_DRM_FSL_DCU) += fsl-dcu/ 178obj-$(CONFIG_DRM_ETNAVIV) += etnaviv/ 179obj-y += hisilicon/ 180obj-y += mxsfb/ 181obj-y += tiny/ 182obj-$(CONFIG_DRM_PL111) += pl111/ 183obj-$(CONFIG_DRM_TVE200) += tve200/ 184obj-$(CONFIG_DRM_XEN) += xen/ 185obj-$(CONFIG_DRM_VBOXVIDEO) += vboxvideo/ 186obj-$(CONFIG_DRM_LIMA) += lima/ 187obj-$(CONFIG_DRM_PANFROST) += panfrost/ 188obj-$(CONFIG_DRM_ASPEED_GFX) += aspeed/ 189obj-$(CONFIG_DRM_MCDE) += mcde/ 190obj-$(CONFIG_DRM_TIDSS) += tidss/ 191obj-y += xlnx/ 192obj-y += gud/ 193obj-$(CONFIG_DRM_HYPERV) += hyperv/ 194obj-y += solomon/ 195obj-$(CONFIG_DRM_SPRD) += sprd/ 196