xref: /linux/drivers/gpu/drm/nouveau/Kbuild (revision 9ce523cc3bf2ac19922e0a5d4b491221da01d1bc)
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
33*9ce523ccSBen Skeggsnouveau-y += nouveau_mem.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