1 1.14 nia # $NetBSD: Makefile,v 1.14 2021/06/03 15:59:04 nia 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.11 riastrad SRCS+= drm_agp_hook.c 17 1.10 riastrad SRCS+= drm_cdevsw.c 18 1.10 riastrad SRCS+= drm_gem_cma_helper.c 19 1.10 riastrad SRCS+= drm_gem_vm.c 20 1.10 riastrad SRCS+= drm_module.c 21 1.10 riastrad SRCS+= drm_sysctl.c 22 1.10 riastrad 23 1.10 riastrad # Generic, unaccelerated kms framebuffer. 24 1.10 riastrad SRCS+= drmfb.c 25 1.10 riastrad 26 1.10 riastrad # XXX ttm 27 1.10 riastrad 28 1.14 nia # Code imported from Linux - expects signed overflow to be OK. 29 1.14 nia COPTS+= -fwrapv 30 1.14 nia 31 1.11 riastrad CPPFLAGS+= -I. 32 1.11 riastrad 33 1.10 riastrad # XXX CWARNFLAGS.foo.c doesn't work. 34 1.10 riastrad COPTS.drm_atomic_helper.c+= -Wno-shadow 35 1.13 riastrad COPTS.drm_bufs.c+= -Wno-pointer-arith 36 1.10 riastrad COPTS.drm_crtc.c+= -Wno-missing-field-initializers 37 1.13 riastrad COPTS.drm_crtc.c+= -Wno-pointer-arith 38 1.10 riastrad COPTS.drm_crtc.c+= -Wno-shadow 39 1.13 riastrad COPTS.drm_dp_helper.c+= -Wno-pointer-arith 40 1.10 riastrad COPTS.drm_edid.c+= -Wno-shadow 41 1.10 riastrad COPTS.drm_ioctl.c+= -Wno-shadow 42 1.2 riastrad 43 1.2 riastrad # Upstream source files. 44 1.2 riastrad #SRCS+= ati_pcigart.c # Moved to drmkms_pci module. 45 1.7 riastrad #SRCS+= drm_agpsupport.c # Moved to drmkms_pci module. 46 1.10 riastrad SRCS+= drm_atomic.c 47 1.10 riastrad SRCS+= drm_atomic_helper.c 48 1.2 riastrad SRCS+= drm_auth.c 49 1.10 riastrad SRCS+= drm_bridge.c 50 1.2 riastrad SRCS+= drm_bufs.c 51 1.2 riastrad SRCS+= drm_cache.c 52 1.2 riastrad SRCS+= drm_context.c 53 1.2 riastrad SRCS+= drm_crtc.c 54 1.2 riastrad SRCS+= drm_crtc_helper.c 55 1.10 riastrad SRCS+= drm_debugfs.c 56 1.2 riastrad SRCS+= drm_dma.c 57 1.2 riastrad SRCS+= drm_dp_helper.c 58 1.10 riastrad SRCS+= drm_dp_mst_topology.c 59 1.2 riastrad SRCS+= drm_drv.c 60 1.2 riastrad SRCS+= drm_edid.c 61 1.8 riastrad SRCS+= drm_encoder_slave.c 62 1.10 riastrad SRCS+= drm_fb_helper.c 63 1.3 riastrad SRCS+= drm_flip_work.c 64 1.2 riastrad SRCS+= drm_fops.c 65 1.2 riastrad SRCS+= drm_gem.c 66 1.2 riastrad SRCS+= drm_global.c 67 1.2 riastrad SRCS+= drm_hashtab.c 68 1.2 riastrad #SRCS+= drm_info.c # XXX Rewrite for sysctl or something. 69 1.2 riastrad SRCS+= drm_ioctl.c 70 1.2 riastrad SRCS+= drm_irq.c 71 1.2 riastrad SRCS+= drm_lock.c 72 1.2 riastrad SRCS+= drm_memory.c 73 1.2 riastrad SRCS+= drm_mm.c 74 1.2 riastrad SRCS+= drm_modes.c 75 1.10 riastrad SRCS+= drm_modeset_lock.c 76 1.2 riastrad #SRCS+= drm_pci.c # Moved to drmkms_pci module. 77 1.3 riastrad SRCS+= drm_plane_helper.c 78 1.2 riastrad #SRCS+= drm_platform.c # XXX Rewrite per platform. 79 1.2 riastrad #SRCS+= drm_prime.c # XXX Revisit later. 80 1.3 riastrad SRCS+= drm_probe_helper.c 81 1.3 riastrad SRCS+= drm_rect.c 82 1.2 riastrad SRCS+= drm_scatter.c 83 1.3 riastrad SRCS+= drm_sysfs.c 84 1.10 riastrad SRCS+= drm_trace_points.c 85 1.2 riastrad SRCS+= drm_vm.c 86 1.3 riastrad SRCS+= drm_vma_manager.c 87 1.2 riastrad 88 1.12 rin WARNS= 3 89 1.12 rin 90 1.2 riastrad .include <bsd.kmodule.mk> 91