xref: /linux/drivers/gpu/drm/nouveau/Kbuild (revision 8d021d71b3247937a26ffdf313fd53a9d58778b7)
1c39f472eSBen Skeggsccflags-y := -Iinclude/drm
2c39f472eSBen Skeggsccflags-y += -I$(src)/include
3c39f472eSBen Skeggsccflags-y += -I$(src)/include/nvkm
4c39f472eSBen Skeggsccflags-y += -I$(src)/nvkm
5c39f472eSBen Skeggsccflags-y += -I$(src)
6c39f472eSBen Skeggs
7c39f472eSBen Skeggs# NVKM - HW resource manager
8c39f472eSBen Skeggs#- code also used by various userspace tools/tests
9c39f472eSBen Skeggsinclude $(src)/nvif/Kbuild
10c39f472eSBen Skeggsnouveau-y := $(nvif-y)
11c39f472eSBen Skeggs
12c39f472eSBen Skeggs# NVIF - NVKM interface library (NVKM user interface also defined here)
13c39f472eSBen Skeggs#- code also used by various userspace tools/tests
14c39f472eSBen Skeggsinclude $(src)/nvkm/Kbuild
15c39f472eSBen Skeggsnouveau-y += $(nvkm-y)
16c39f472eSBen Skeggs
17c39f472eSBen Skeggs# DRM - general
18c39f472eSBen Skeggsifdef CONFIG_X86
19c39f472eSBen Skeggsnouveau-$(CONFIG_ACPI) += nouveau_acpi.o
20c39f472eSBen Skeggsendif
21c39f472eSBen Skeggsnouveau-$(CONFIG_DEBUG_FS) += nouveau_debugfs.o
22c39f472eSBen Skeggsnouveau-y += nouveau_drm.o
23c39f472eSBen Skeggsnouveau-y += nouveau_hwmon.o
24c39f472eSBen Skeggsnouveau-$(CONFIG_COMPAT) += nouveau_ioc32.o
25*8d021d71SMartin Peresnouveau-$(CONFIG_LEDS_CLASS) += nouveau_led.o
26c39f472eSBen Skeggsnouveau-y += nouveau_nvif.o
27c39f472eSBen Skeggsnouveau-$(CONFIG_NOUVEAU_PLATFORM_DRIVER) += nouveau_platform.o
28c39f472eSBen Skeggsnouveau-y += nouveau_usif.o # userspace <-> nvif
29c39f472eSBen Skeggsnouveau-y += nouveau_vga.o
30c39f472eSBen Skeggs
31c39f472eSBen Skeggs# DRM - memory management
32c39f472eSBen Skeggsnouveau-y += nouveau_bo.o
33c39f472eSBen Skeggsnouveau-y += nouveau_gem.o
34c39f472eSBen Skeggsnouveau-y += nouveau_prime.o
35c39f472eSBen Skeggsnouveau-y += nouveau_sgdma.o
36c39f472eSBen Skeggsnouveau-y += nouveau_ttm.o
37c39f472eSBen Skeggs
38c39f472eSBen Skeggs# DRM - modesetting
39c39f472eSBen Skeggsnouveau-$(CONFIG_DRM_NOUVEAU_BACKLIGHT) += nouveau_backlight.o
40c39f472eSBen Skeggsnouveau-y += nouveau_connector.o
41c39f472eSBen Skeggsnouveau-y += nouveau_display.o
42c39f472eSBen Skeggsnouveau-y += nv50_display.o
43c39f472eSBen Skeggsnouveau-y += nouveau_dp.o
44c39f472eSBen Skeggsnouveau-y += nouveau_fbcon.o
45c39f472eSBen Skeggsnouveau-y += nv04_fbcon.o
46c39f472eSBen Skeggsnouveau-y += nv50_fbcon.o
47c39f472eSBen Skeggsnouveau-y += nvc0_fbcon.o
48c39f472eSBen Skeggs
49c39f472eSBen Skeggs# DRM - command submission
50c39f472eSBen Skeggsnouveau-y += nouveau_abi16.o
51c39f472eSBen Skeggsnouveau-y += nouveau_chan.o
52c39f472eSBen Skeggsnouveau-y += nouveau_dma.o
53c39f472eSBen Skeggsnouveau-y += nouveau_fence.o
54c39f472eSBen Skeggsnouveau-y += nv04_fence.o
55c39f472eSBen Skeggsnouveau-y += nv10_fence.o
56c39f472eSBen Skeggsnouveau-y += nv17_fence.o
57c39f472eSBen Skeggsnouveau-y += nv50_fence.o
58c39f472eSBen Skeggsnouveau-y += nv84_fence.o
59c39f472eSBen Skeggsnouveau-y += nvc0_fence.o
60c39f472eSBen Skeggs
61c39f472eSBen Skeggs# DRM - prehistoric modesetting (NV04-G7x)
62c39f472eSBen Skeggsnouveau-y += nouveau_bios.o
63c39f472eSBen Skeggsinclude $(src)/dispnv04/Kbuild
64c39f472eSBen Skeggs
65c39f472eSBen Skeggsobj-$(CONFIG_DRM_NOUVEAU) += nouveau.o
66