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