xref: /netbsd-src/sys/modules/drmkms/Makefile (revision 551ca113e151690ddbea5f59bf3a8f5f8e0ee130)
1*551ca113Sriastradh# $NetBSD: Makefile,v 1.19 2023/01/31 13:09:04 riastradh Exp $
26cb10275Sriastradh
36cb10275Sriastradh.include "../Makefile.inc"
46cb10275Sriastradh.include "Makefile.inc"
56cb10275Sriastradh
6bc6c52c2SriastradhKMOD=	drmkms
7bc6c52c2SriastradhMKLDSCRIPT=yes
8bc6c52c2Sriastradh
96cb10275Sriastradh.PATH:	${S}/external/bsd/drm2/drm
10c48dc052Sriastradh.PATH:	${S}/external/bsd/drm2/i2c
116cb10275Sriastradh.PATH:	${S}/external/bsd/drm2/pci
12bc6c52c2Sriastradh
136cb10275Sriastradh.PATH:	${S}/external/bsd/drm2/dist/drm
1484936b9bSriastradh.PATH:	${S}/external/bsd/drm2/dist/drm/scheduler
156cb10275Sriastradh
16bc6c52c2Sriastradh# NetBSD additions.
17d46aeca2SriastradhSRCS+=	drm_agp_hook.c
18bc6c52c2SriastradhSRCS+=	drm_cdevsw.c
19bc6c52c2SriastradhSRCS+=	drm_gem_vm.c
20bc6c52c2SriastradhSRCS+=	drm_module.c
21bc6c52c2SriastradhSRCS+=	drm_sysctl.c
22bc6c52c2Sriastradh
23fa2fa0c7Sriastradh# pci bus ids -- doesn't depend on all of pci, just the header files
245f08c807SriastradhSRCS+=	drm_pci_busid.c
255f08c807Sriastradh
26bc6c52c2Sriastradh# Generic, unaccelerated kms framebuffer.
27bc6c52c2SriastradhSRCS+=	drmfb.c
28bc6c52c2Sriastradh
29bc6c52c2Sriastradh# XXX ttm
30bc6c52c2Sriastradh
31d46aeca2SriastradhCPPFLAGS+=	-I.
32d46aeca2Sriastradh
33bc6c52c2Sriastradh# XXX CWARNFLAGS.foo.c doesn't work.
34bc6c52c2SriastradhCOPTS.drm_atomic_helper.c+=	-Wno-shadow
3532792a7eSriastradhCOPTS.drm_bufs.c+=		-Wno-pointer-arith
36bc6c52c2SriastradhCOPTS.drm_crtc.c+=		-Wno-missing-field-initializers
3732792a7eSriastradhCOPTS.drm_crtc.c+=		-Wno-pointer-arith
38bc6c52c2SriastradhCOPTS.drm_crtc.c+=		-Wno-shadow
395f08c807SriastradhCOPTS.drm_client_modeset.c+=	-Wno-shadow
4032792a7eSriastradhCOPTS.drm_dp_helper.c+=		-Wno-pointer-arith
415f08c807SriastradhCOPTS.drm_fb_helper.c+=		-Wno-shadow
42bc6c52c2SriastradhCOPTS.drm_edid.c+=		-Wno-shadow
43bc6c52c2SriastradhCOPTS.drm_ioctl.c+=		-Wno-shadow
442f7fddcfSriastradhCOPTS.drm_mm.c+=		${${ACTIVE_CC} == clang :? -Wno-unused-function :}
455f08c807SriastradhCOPTS.drm_modes.c+=		-Wno-shadow
466cb10275Sriastradh
47fa2fa0c7Sriastradh# Legacy user-mode setting
48fa2fa0c7SriastradhSRCS+=	drm_bufs.c
49fa2fa0c7SriastradhSRCS+=	drm_context.c
50fa2fa0c7SriastradhSRCS+=	drm_dma.c
51fa2fa0c7SriastradhSRCS+=	drm_legacy_misc.c
52fa2fa0c7SriastradhSRCS+=	drm_lock.c
53fa2fa0c7SriastradhSRCS+=	drm_scatter.c
54fa2fa0c7Sriastradh
55*551ca113Sriastradh# GPU scheduler is separatd out into drmkms_sched.kmod
5684936b9bSriastradh
576cb10275Sriastradh# Upstream source files.
58fa2fa0c7Sriastradh#SRCS+=	drm_agpsupport.c
59bc6c52c2SriastradhSRCS+=	drm_atomic.c
60bc6c52c2SriastradhSRCS+=	drm_atomic_helper.c
615f08c807SriastradhSRCS+=	drm_atomic_state_helper.c
625f08c807SriastradhSRCS+=	drm_atomic_uapi.c
636cb10275SriastradhSRCS+=	drm_auth.c
645f08c807SriastradhSRCS+=	drm_blend.c
65bc6c52c2SriastradhSRCS+=	drm_bridge.c
666cb10275SriastradhSRCS+=	drm_cache.c
675f08c807SriastradhSRCS+=	drm_client.c
685f08c807SriastradhSRCS+=	drm_client_modeset.c
695f08c807SriastradhSRCS+=	drm_color_mgmt.c
705f08c807SriastradhSRCS+=	drm_connector.c
716cb10275SriastradhSRCS+=	drm_crtc.c
726cb10275SriastradhSRCS+=	drm_crtc_helper.c
735f08c807SriastradhSRCS+=	drm_damage_helper.c
745f08c807SriastradhSRCS+=	drm_dp_dual_mode_helper.c
756cb10275SriastradhSRCS+=	drm_dp_helper.c
76bc6c52c2SriastradhSRCS+=	drm_dp_mst_topology.c
776cb10275SriastradhSRCS+=	drm_drv.c
785f08c807SriastradhSRCS+=	drm_dsc.c
795f08c807SriastradhSRCS+=	drm_dumb_buffers.c
806cb10275SriastradhSRCS+=	drm_edid.c
815f08c807SriastradhSRCS+=	drm_encoder.c
82c48dc052SriastradhSRCS+=	drm_encoder_slave.c
83bc6c52c2SriastradhSRCS+=	drm_fb_helper.c
84fa2fa0c7SriastradhSRCS+=	drm_file.c
8577b5597aSriastradhSRCS+=	drm_flip_work.c
865f08c807Sriastradh#SRCS+=	drm_format_helper.c
875f08c807SriastradhSRCS+=	drm_fourcc.c
885f08c807SriastradhSRCS+=	drm_framebuffer.c
896cb10275SriastradhSRCS+=	drm_gem.c
905f08c807SriastradhSRCS+=	drm_gem_cma_helper.c
915f08c807SriastradhSRCS+=	drm_gem_framebuffer_helper.c
926cb10275SriastradhSRCS+=	drm_hashtab.c
93fa2fa0c7SriastradhSRCS+=	drm_hdcp.c
946cb10275SriastradhSRCS+=	drm_ioctl.c
956cb10275SriastradhSRCS+=	drm_irq.c
965f08c807Sriastradh#SRCS+=	drm_kms_helper_common.c
975f08c807SriastradhSRCS+=	drm_lease.c
986cb10275SriastradhSRCS+=	drm_memory.c
996cb10275SriastradhSRCS+=	drm_mm.c
1005f08c807SriastradhSRCS+=	drm_mode_config.c
1015f08c807SriastradhSRCS+=	drm_mode_object.c
1026cb10275SriastradhSRCS+=	drm_modes.c
1035f08c807SriastradhSRCS+=	drm_modeset_helper.c
104bc6c52c2SriastradhSRCS+=	drm_modeset_lock.c
1055f08c807SriastradhSRCS+=	drm_panel.c
1065f08c807SriastradhSRCS+=	drm_panel_orientation_quirks.c
107fa2fa0c7Sriastradh#SRCS+=	drm_pci.c
1085f08c807SriastradhSRCS+=	drm_plane.c
10977b5597aSriastradhSRCS+=	drm_plane_helper.c
1105f08c807SriastradhSRCS+=	drm_prime.c
1115f08c807SriastradhSRCS+=	drm_print.c
11277b5597aSriastradhSRCS+=	drm_probe_helper.c
1135f08c807SriastradhSRCS+=	drm_property.c
11477b5597aSriastradhSRCS+=	drm_rect.c
1155f08c807SriastradhSRCS+=	drm_scdc_helper.c
1165f08c807SriastradhSRCS+=	drm_self_refresh_helper.c
1175f08c807Sriastradh#SRCS+=	drm_simple_kms_helper.c
1185f08c807SriastradhSRCS+=	drm_syncobj.c
11977b5597aSriastradhSRCS+=	drm_sysfs.c
120bc6c52c2SriastradhSRCS+=	drm_trace_points.c
1215f08c807SriastradhSRCS+=	drm_vblank.c
1226cb10275SriastradhSRCS+=	drm_vm.c
12377b5597aSriastradhSRCS+=	drm_vma_manager.c
1245f08c807SriastradhSRCS+=	drm_writeback.c
1256cb10275Sriastradh
1262bc4fb1fSrinWARNS=	3
1272bc4fb1fSrin
1286cb10275Sriastradh.include <bsd.kmodule.mk>
129