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