1 1.10 riastrad # $NetBSD: Makefile,v 1.10 2018/08/27 13:53:42 riastradh Exp $ 2 1.2 riastrad 3 1.2 riastrad .include "../Makefile.inc" 4 1.2 riastrad .include "Makefile.inc" 5 1.2 riastrad 6 1.10 riastrad KMOD= drmkms 7 1.10 riastrad MKLDSCRIPT=yes 8 1.10 riastrad 9 1.2 riastrad .PATH: ${S}/external/bsd/drm2/drm 10 1.8 riastrad .PATH: ${S}/external/bsd/drm2/i2c 11 1.2 riastrad .PATH: ${S}/external/bsd/drm2/pci 12 1.10 riastrad 13 1.2 riastrad .PATH: ${S}/external/bsd/drm2/dist/drm 14 1.2 riastrad 15 1.10 riastrad # NetBSD additions. 16 1.10 riastrad SRCS+= drm_cdevsw.c 17 1.10 riastrad SRCS+= drm_gem_cma_helper.c 18 1.10 riastrad SRCS+= drm_gem_vm.c 19 1.10 riastrad SRCS+= drm_module.c 20 1.10 riastrad SRCS+= drm_sysctl.c 21 1.10 riastrad 22 1.10 riastrad # Generic, unaccelerated kms framebuffer. 23 1.10 riastrad SRCS+= drmfb.c 24 1.10 riastrad 25 1.10 riastrad # XXX ttm 26 1.10 riastrad 27 1.10 riastrad # XXX CWARNFLAGS.foo.c doesn't work. 28 1.10 riastrad COPTS.drm_atomic_helper.c+= -Wno-shadow 29 1.10 riastrad COPTS.drm_crtc.c+= -Wno-missing-field-initializers 30 1.10 riastrad COPTS.drm_crtc.c+= -Wno-shadow 31 1.10 riastrad COPTS.drm_edid.c+= -Wno-shadow 32 1.10 riastrad COPTS.drm_ioctl.c+= -Wno-shadow 33 1.2 riastrad 34 1.2 riastrad # Upstream source files. 35 1.2 riastrad #SRCS+= ati_pcigart.c # Moved to drmkms_pci module. 36 1.7 riastrad #SRCS+= drm_agpsupport.c # Moved to drmkms_pci module. 37 1.10 riastrad SRCS+= drm_atomic.c 38 1.10 riastrad SRCS+= drm_atomic_helper.c 39 1.2 riastrad SRCS+= drm_auth.c 40 1.10 riastrad SRCS+= drm_bridge.c 41 1.2 riastrad SRCS+= drm_bufs.c 42 1.2 riastrad SRCS+= drm_cache.c 43 1.2 riastrad SRCS+= drm_context.c 44 1.2 riastrad SRCS+= drm_crtc.c 45 1.2 riastrad SRCS+= drm_crtc_helper.c 46 1.10 riastrad SRCS+= drm_debugfs.c 47 1.2 riastrad SRCS+= drm_dma.c 48 1.2 riastrad SRCS+= drm_dp_helper.c 49 1.10 riastrad SRCS+= drm_dp_mst_topology.c 50 1.2 riastrad SRCS+= drm_drv.c 51 1.2 riastrad SRCS+= drm_edid.c 52 1.8 riastrad SRCS+= drm_encoder_slave.c 53 1.10 riastrad SRCS+= drm_fb_helper.c 54 1.3 riastrad SRCS+= drm_flip_work.c 55 1.2 riastrad SRCS+= drm_fops.c 56 1.2 riastrad SRCS+= drm_gem.c 57 1.2 riastrad SRCS+= drm_global.c 58 1.2 riastrad SRCS+= drm_hashtab.c 59 1.2 riastrad #SRCS+= drm_info.c # XXX Rewrite for sysctl or something. 60 1.2 riastrad SRCS+= drm_ioctl.c 61 1.2 riastrad SRCS+= drm_irq.c 62 1.2 riastrad SRCS+= drm_lock.c 63 1.2 riastrad SRCS+= drm_memory.c 64 1.2 riastrad SRCS+= drm_mm.c 65 1.2 riastrad SRCS+= drm_modes.c 66 1.10 riastrad SRCS+= drm_modeset_lock.c 67 1.2 riastrad #SRCS+= drm_pci.c # Moved to drmkms_pci module. 68 1.3 riastrad SRCS+= drm_plane_helper.c 69 1.2 riastrad #SRCS+= drm_platform.c # XXX Rewrite per platform. 70 1.2 riastrad #SRCS+= drm_prime.c # XXX Revisit later. 71 1.3 riastrad SRCS+= drm_probe_helper.c 72 1.3 riastrad SRCS+= drm_rect.c 73 1.2 riastrad SRCS+= drm_scatter.c 74 1.3 riastrad SRCS+= drm_sysfs.c 75 1.10 riastrad SRCS+= drm_trace_points.c 76 1.2 riastrad SRCS+= drm_vm.c 77 1.3 riastrad SRCS+= drm_vma_manager.c 78 1.2 riastrad 79 1.2 riastrad .include <bsd.kmodule.mk> 80