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