xref: /linux/drivers/gpu/drm/Makefile (revision f884ab15afdc5514e88105c92a4e2e1e6539869a)
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
5ccflags-y := -Iinclude/drm
6
7drm-y       :=	drm_auth.o drm_buffer.o drm_bufs.o drm_cache.o \
8		drm_context.o drm_dma.o \
9		drm_drv.o drm_fops.o drm_gem.o drm_ioctl.o drm_irq.o \
10		drm_lock.o drm_memory.o drm_proc.o drm_stub.o drm_vm.o \
11		drm_agpsupport.o drm_scatter.o drm_pci.o \
12		drm_platform.o drm_sysfs.o drm_hashtab.o drm_mm.o \
13		drm_crtc.o drm_modes.o drm_edid.o \
14		drm_info.o drm_debugfs.o drm_encoder_slave.o \
15		drm_trace_points.o drm_global.o drm_prime.o
16
17drm-$(CONFIG_COMPAT) += drm_ioc32.o
18drm-$(CONFIG_DRM_GEM_CMA_HELPER) += drm_gem_cma_helper.o
19drm-$(CONFIG_PCI) += ati_pcigart.o
20
21drm-usb-y   := drm_usb.o
22
23drm_kms_helper-y := drm_fb_helper.o drm_crtc_helper.o drm_dp_helper.o
24drm_kms_helper-$(CONFIG_DRM_LOAD_EDID_FIRMWARE) += drm_edid_load.o
25drm_kms_helper-$(CONFIG_DRM_KMS_CMA_HELPER) += drm_fb_cma_helper.o
26
27obj-$(CONFIG_DRM_KMS_HELPER) += drm_kms_helper.o
28
29CFLAGS_drm_trace_points.o := -I$(src)
30
31obj-$(CONFIG_DRM)	+= drm.o
32obj-$(CONFIG_DRM_USB)   += drm_usb.o
33obj-$(CONFIG_DRM_TTM)	+= ttm/
34obj-$(CONFIG_DRM_TDFX)	+= tdfx/
35obj-$(CONFIG_DRM_R128)	+= r128/
36obj-$(CONFIG_DRM_RADEON)+= radeon/
37obj-$(CONFIG_DRM_MGA)	+= mga/
38obj-$(CONFIG_DRM_I810)	+= i810/
39obj-$(CONFIG_DRM_I915)  += i915/
40obj-$(CONFIG_DRM_MGAG200) += mgag200/
41obj-$(CONFIG_DRM_CIRRUS_QEMU) += cirrus/
42obj-$(CONFIG_DRM_SIS)   += sis/
43obj-$(CONFIG_DRM_SAVAGE)+= savage/
44obj-$(CONFIG_DRM_VMWGFX)+= vmwgfx/
45obj-$(CONFIG_DRM_VIA)	+=via/
46obj-$(CONFIG_DRM_NOUVEAU) +=nouveau/
47obj-$(CONFIG_DRM_EXYNOS) +=exynos/
48obj-$(CONFIG_DRM_GMA500) += gma500/
49obj-$(CONFIG_DRM_UDL) += udl/
50obj-$(CONFIG_DRM_AST) += ast/
51obj-$(CONFIG_DRM_SHMOBILE) +=shmobile/
52obj-$(CONFIG_DRM_OMAP)	+= omapdrm/
53obj-$(CONFIG_DRM_TILCDC)	+= tilcdc/
54obj-$(CONFIG_DRM_QXL) += qxl/
55obj-y			+= i2c/
56