1*bbd540c0SBen SkeggsNOUVEAU_PATH ?= $(srctree) 2*bbd540c0SBen Skeggs 3b0f84a84SBen Skeggs# SPDX-License-Identifier: MIT 4*bbd540c0SBen Skeggsccflags-y += -I $(NOUVEAU_PATH)/$(src)/include 5*bbd540c0SBen Skeggsccflags-y += -I $(NOUVEAU_PATH)/$(src)/include/nvkm 6*bbd540c0SBen Skeggsccflags-y += -I $(NOUVEAU_PATH)/$(src)/nvkm 7*bbd540c0SBen Skeggsccflags-y += -I $(NOUVEAU_PATH)/$(src) 8c39f472eSBen Skeggs 9c39f472eSBen Skeggs# NVKM - HW resource manager 10c39f472eSBen Skeggs#- code also used by various userspace tools/tests 11c39f472eSBen Skeggsinclude $(src)/nvif/Kbuild 12c39f472eSBen Skeggsnouveau-y := $(nvif-y) 13c39f472eSBen Skeggs 14c39f472eSBen Skeggs# NVIF - NVKM interface library (NVKM user interface also defined here) 15c39f472eSBen Skeggs#- code also used by various userspace tools/tests 16c39f472eSBen Skeggsinclude $(src)/nvkm/Kbuild 17c39f472eSBen Skeggsnouveau-y += $(nvkm-y) 18c39f472eSBen Skeggs 19c39f472eSBen Skeggs# DRM - general 20c39f472eSBen Skeggsifdef CONFIG_X86 21c39f472eSBen Skeggsnouveau-$(CONFIG_ACPI) += nouveau_acpi.o 22c39f472eSBen Skeggsendif 23c39f472eSBen Skeggsnouveau-$(CONFIG_DEBUG_FS) += nouveau_debugfs.o 24c39f472eSBen Skeggsnouveau-y += nouveau_drm.o 25c39f472eSBen Skeggsnouveau-y += nouveau_hwmon.o 26c39f472eSBen Skeggsnouveau-$(CONFIG_COMPAT) += nouveau_ioc32.o 278d021d71SMartin Peresnouveau-$(CONFIG_LEDS_CLASS) += nouveau_led.o 28c39f472eSBen Skeggsnouveau-y += nouveau_nvif.o 29c39f472eSBen Skeggsnouveau-$(CONFIG_NOUVEAU_PLATFORM_DRIVER) += nouveau_platform.o 30c39f472eSBen Skeggsnouveau-y += nouveau_usif.o # userspace <-> nvif 31c39f472eSBen Skeggsnouveau-y += nouveau_vga.o 32c39f472eSBen Skeggs 33c39f472eSBen Skeggs# DRM - memory management 34c39f472eSBen Skeggsnouveau-y += nouveau_bo.o 35c39f472eSBen Skeggsnouveau-y += nouveau_gem.o 36eeaf06acSBen Skeggsnouveau-$(CONFIG_DRM_NOUVEAU_SVM) += nouveau_svm.o 375be73b69SJérôme Glissenouveau-$(CONFIG_DRM_NOUVEAU_SVM) += nouveau_dmem.o 389ce523ccSBen Skeggsnouveau-y += nouveau_mem.o 39c39f472eSBen Skeggsnouveau-y += nouveau_prime.o 40c39f472eSBen Skeggsnouveau-y += nouveau_sgdma.o 41c39f472eSBen Skeggsnouveau-y += nouveau_ttm.o 4224e8375bSBen Skeggsnouveau-y += nouveau_vmm.o 43c39f472eSBen Skeggs 44c39f472eSBen Skeggs# DRM - modesetting 45c39f472eSBen Skeggsnouveau-$(CONFIG_DRM_NOUVEAU_BACKLIGHT) += nouveau_backlight.o 4630ed49b5SBen Skeggsnouveau-y += nouveau_bios.o 47c39f472eSBen Skeggsnouveau-y += nouveau_connector.o 48c39f472eSBen Skeggsnouveau-y += nouveau_display.o 49c39f472eSBen Skeggsnouveau-y += nouveau_dp.o 50c39f472eSBen Skeggsnouveau-y += nouveau_fbcon.o 51c39f472eSBen Skeggsnouveau-y += nv04_fbcon.o 52c39f472eSBen Skeggsnouveau-y += nv50_fbcon.o 53c39f472eSBen Skeggsnouveau-y += nvc0_fbcon.o 5430ed49b5SBen Skeggsinclude $(src)/dispnv04/Kbuild 5530ed49b5SBen Skeggsinclude $(src)/dispnv50/Kbuild 56c39f472eSBen Skeggs 57c39f472eSBen Skeggs# DRM - command submission 58c39f472eSBen Skeggsnouveau-y += nouveau_abi16.o 59c39f472eSBen Skeggsnouveau-y += nouveau_chan.o 60c39f472eSBen Skeggsnouveau-y += nouveau_dma.o 61c39f472eSBen Skeggsnouveau-y += nouveau_fence.o 62c39f472eSBen Skeggsnouveau-y += nv04_fence.o 63c39f472eSBen Skeggsnouveau-y += nv10_fence.o 64c39f472eSBen Skeggsnouveau-y += nv17_fence.o 65c39f472eSBen Skeggsnouveau-y += nv50_fence.o 66c39f472eSBen Skeggsnouveau-y += nv84_fence.o 67c39f472eSBen Skeggsnouveau-y += nvc0_fence.o 68c39f472eSBen Skeggs 69c39f472eSBen Skeggsobj-$(CONFIG_DRM_NOUVEAU) += nouveau.o 70