1*b0f84a84SBen Skeggs# SPDX-License-Identifier: MIT 243068cb7SMasahiro Yamadaccflags-y += -I $(srctree)/$(src)/include 343068cb7SMasahiro Yamadaccflags-y += -I $(srctree)/$(src)/include/nvkm 443068cb7SMasahiro Yamadaccflags-y += -I $(srctree)/$(src)/nvkm 543068cb7SMasahiro Yamadaccflags-y += -I $(srctree)/$(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 258d021d71SMartin 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 34eeaf06acSBen Skeggsnouveau-$(CONFIG_DRM_NOUVEAU_SVM) += nouveau_svm.o 355be73b69SJérôme Glissenouveau-$(CONFIG_DRM_NOUVEAU_SVM) += nouveau_dmem.o 369ce523ccSBen Skeggsnouveau-y += nouveau_mem.o 37c39f472eSBen Skeggsnouveau-y += nouveau_prime.o 38c39f472eSBen Skeggsnouveau-y += nouveau_sgdma.o 39c39f472eSBen Skeggsnouveau-y += nouveau_ttm.o 4024e8375bSBen Skeggsnouveau-y += nouveau_vmm.o 41c39f472eSBen Skeggs 42c39f472eSBen Skeggs# DRM - modesetting 43c39f472eSBen Skeggsnouveau-$(CONFIG_DRM_NOUVEAU_BACKLIGHT) += nouveau_backlight.o 4430ed49b5SBen Skeggsnouveau-y += nouveau_bios.o 45c39f472eSBen Skeggsnouveau-y += nouveau_connector.o 46c39f472eSBen Skeggsnouveau-y += nouveau_display.o 47c39f472eSBen Skeggsnouveau-y += nouveau_dp.o 48c39f472eSBen Skeggsnouveau-y += nouveau_fbcon.o 49c39f472eSBen Skeggsnouveau-y += nv04_fbcon.o 50c39f472eSBen Skeggsnouveau-y += nv50_fbcon.o 51c39f472eSBen Skeggsnouveau-y += nvc0_fbcon.o 5230ed49b5SBen Skeggsinclude $(src)/dispnv04/Kbuild 5330ed49b5SBen Skeggsinclude $(src)/dispnv50/Kbuild 54c39f472eSBen Skeggs 55c39f472eSBen Skeggs# DRM - command submission 56c39f472eSBen Skeggsnouveau-y += nouveau_abi16.o 57c39f472eSBen Skeggsnouveau-y += nouveau_chan.o 58c39f472eSBen Skeggsnouveau-y += nouveau_dma.o 59c39f472eSBen Skeggsnouveau-y += nouveau_fence.o 60c39f472eSBen Skeggsnouveau-y += nv04_fence.o 61c39f472eSBen Skeggsnouveau-y += nv10_fence.o 62c39f472eSBen Skeggsnouveau-y += nv17_fence.o 63c39f472eSBen Skeggsnouveau-y += nv50_fence.o 64c39f472eSBen Skeggsnouveau-y += nv84_fence.o 65c39f472eSBen Skeggsnouveau-y += nvc0_fence.o 66c39f472eSBen Skeggs 67c39f472eSBen Skeggsobj-$(CONFIG_DRM_NOUVEAU) += nouveau.o 68