1 1.19 riastrad # $NetBSD: Makefile,v 1.19 2023/01/31 13:09:04 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.18 riastrad .PATH: ${S}/external/bsd/drm2/dist/drm/scheduler 15 1.2 riastrad 16 1.10 riastrad # NetBSD additions. 17 1.11 riastrad SRCS+= drm_agp_hook.c 18 1.10 riastrad SRCS+= drm_cdevsw.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.17 riastrad # pci bus ids -- doesn't depend on all of pci, just the header files 24 1.15 riastrad SRCS+= drm_pci_busid.c 25 1.15 riastrad 26 1.10 riastrad # Generic, unaccelerated kms framebuffer. 27 1.10 riastrad SRCS+= drmfb.c 28 1.10 riastrad 29 1.10 riastrad # XXX ttm 30 1.10 riastrad 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.15 riastrad COPTS.drm_client_modeset.c+= -Wno-shadow 40 1.13 riastrad COPTS.drm_dp_helper.c+= -Wno-pointer-arith 41 1.15 riastrad COPTS.drm_fb_helper.c+= -Wno-shadow 42 1.10 riastrad COPTS.drm_edid.c+= -Wno-shadow 43 1.10 riastrad COPTS.drm_ioctl.c+= -Wno-shadow 44 1.16 riastrad COPTS.drm_mm.c+= ${${ACTIVE_CC} == clang :? -Wno-unused-function :} 45 1.15 riastrad COPTS.drm_modes.c+= -Wno-shadow 46 1.2 riastrad 47 1.17 riastrad # Legacy user-mode setting 48 1.17 riastrad SRCS+= drm_bufs.c 49 1.17 riastrad SRCS+= drm_context.c 50 1.17 riastrad SRCS+= drm_dma.c 51 1.17 riastrad SRCS+= drm_legacy_misc.c 52 1.17 riastrad SRCS+= drm_lock.c 53 1.17 riastrad SRCS+= drm_scatter.c 54 1.17 riastrad 55 1.19 riastrad # GPU scheduler is separatd out into drmkms_sched.kmod 56 1.18 riastrad 57 1.2 riastrad # Upstream source files. 58 1.17 riastrad #SRCS+= drm_agpsupport.c 59 1.10 riastrad SRCS+= drm_atomic.c 60 1.10 riastrad SRCS+= drm_atomic_helper.c 61 1.15 riastrad SRCS+= drm_atomic_state_helper.c 62 1.15 riastrad SRCS+= drm_atomic_uapi.c 63 1.2 riastrad SRCS+= drm_auth.c 64 1.15 riastrad SRCS+= drm_blend.c 65 1.10 riastrad SRCS+= drm_bridge.c 66 1.2 riastrad SRCS+= drm_cache.c 67 1.15 riastrad SRCS+= drm_client.c 68 1.15 riastrad SRCS+= drm_client_modeset.c 69 1.15 riastrad SRCS+= drm_color_mgmt.c 70 1.15 riastrad SRCS+= drm_connector.c 71 1.2 riastrad SRCS+= drm_crtc.c 72 1.2 riastrad SRCS+= drm_crtc_helper.c 73 1.15 riastrad SRCS+= drm_damage_helper.c 74 1.15 riastrad SRCS+= drm_dp_dual_mode_helper.c 75 1.2 riastrad SRCS+= drm_dp_helper.c 76 1.10 riastrad SRCS+= drm_dp_mst_topology.c 77 1.2 riastrad SRCS+= drm_drv.c 78 1.15 riastrad SRCS+= drm_dsc.c 79 1.15 riastrad SRCS+= drm_dumb_buffers.c 80 1.2 riastrad SRCS+= drm_edid.c 81 1.15 riastrad SRCS+= drm_encoder.c 82 1.8 riastrad SRCS+= drm_encoder_slave.c 83 1.10 riastrad SRCS+= drm_fb_helper.c 84 1.17 riastrad SRCS+= drm_file.c 85 1.3 riastrad SRCS+= drm_flip_work.c 86 1.15 riastrad #SRCS+= drm_format_helper.c 87 1.15 riastrad SRCS+= drm_fourcc.c 88 1.15 riastrad SRCS+= drm_framebuffer.c 89 1.2 riastrad SRCS+= drm_gem.c 90 1.15 riastrad SRCS+= drm_gem_cma_helper.c 91 1.15 riastrad SRCS+= drm_gem_framebuffer_helper.c 92 1.2 riastrad SRCS+= drm_hashtab.c 93 1.17 riastrad SRCS+= drm_hdcp.c 94 1.2 riastrad SRCS+= drm_ioctl.c 95 1.2 riastrad SRCS+= drm_irq.c 96 1.15 riastrad #SRCS+= drm_kms_helper_common.c 97 1.15 riastrad SRCS+= drm_lease.c 98 1.2 riastrad SRCS+= drm_memory.c 99 1.2 riastrad SRCS+= drm_mm.c 100 1.15 riastrad SRCS+= drm_mode_config.c 101 1.15 riastrad SRCS+= drm_mode_object.c 102 1.2 riastrad SRCS+= drm_modes.c 103 1.15 riastrad SRCS+= drm_modeset_helper.c 104 1.10 riastrad SRCS+= drm_modeset_lock.c 105 1.15 riastrad SRCS+= drm_panel.c 106 1.15 riastrad SRCS+= drm_panel_orientation_quirks.c 107 1.17 riastrad #SRCS+= drm_pci.c 108 1.15 riastrad SRCS+= drm_plane.c 109 1.3 riastrad SRCS+= drm_plane_helper.c 110 1.15 riastrad SRCS+= drm_prime.c 111 1.15 riastrad SRCS+= drm_print.c 112 1.3 riastrad SRCS+= drm_probe_helper.c 113 1.15 riastrad SRCS+= drm_property.c 114 1.3 riastrad SRCS+= drm_rect.c 115 1.15 riastrad SRCS+= drm_scdc_helper.c 116 1.15 riastrad SRCS+= drm_self_refresh_helper.c 117 1.15 riastrad #SRCS+= drm_simple_kms_helper.c 118 1.15 riastrad SRCS+= drm_syncobj.c 119 1.3 riastrad SRCS+= drm_sysfs.c 120 1.10 riastrad SRCS+= drm_trace_points.c 121 1.15 riastrad SRCS+= drm_vblank.c 122 1.2 riastrad SRCS+= drm_vm.c 123 1.3 riastrad SRCS+= drm_vma_manager.c 124 1.15 riastrad SRCS+= drm_writeback.c 125 1.2 riastrad 126 1.12 rin WARNS= 3 127 1.12 rin 128 1.2 riastrad .include <bsd.kmodule.mk> 129