Makefile revision 1.11
11.10Sriastrad# $NetBSD: Makefile,v 1.11 2018/08/28 03:41:40 riastradh Exp $
21.2Sriastrad
31.2Sriastrad.include "../Makefile.inc"
41.2Sriastrad.include "Makefile.inc"
51.2Sriastrad
61.10SriastradKMOD=	drmkms
71.10SriastradMKLDSCRIPT=yes
81.10Sriastrad
91.2Sriastrad.PATH:	${S}/external/bsd/drm2/drm
101.8Sriastrad.PATH:	${S}/external/bsd/drm2/i2c
111.2Sriastrad.PATH:	${S}/external/bsd/drm2/pci
121.10Sriastrad
131.2Sriastrad.PATH:	${S}/external/bsd/drm2/dist/drm
141.2Sriastrad
151.10Sriastrad# NetBSD additions.
161.11SriastradSRCS+=	drm_agp_hook.c
171.10SriastradSRCS+=	drm_cdevsw.c
181.10SriastradSRCS+=	drm_gem_cma_helper.c
191.10SriastradSRCS+=	drm_gem_vm.c
201.10SriastradSRCS+=	drm_module.c
211.10SriastradSRCS+=	drm_sysctl.c
221.10Sriastrad
231.10Sriastrad# Generic, unaccelerated kms framebuffer.
241.10SriastradSRCS+=	drmfb.c
251.10Sriastrad
261.10Sriastrad# XXX ttm
271.10Sriastrad
281.11SriastradCPPFLAGS+=	-I.
291.11Sriastrad
301.10Sriastrad# XXX CWARNFLAGS.foo.c doesn't work.
311.10SriastradCOPTS.drm_atomic_helper.c+=	-Wno-shadow
321.10SriastradCOPTS.drm_crtc.c+=		-Wno-missing-field-initializers
331.10SriastradCOPTS.drm_crtc.c+=		-Wno-shadow
341.10SriastradCOPTS.drm_edid.c+=		-Wno-shadow
351.10SriastradCOPTS.drm_ioctl.c+=		-Wno-shadow
361.2Sriastrad
371.2Sriastrad# Upstream source files.
381.2Sriastrad#SRCS+=	ati_pcigart.c		# Moved to drmkms_pci module.
391.7Sriastrad#SRCS+=	drm_agpsupport.c	# Moved to drmkms_pci module.
401.10SriastradSRCS+=	drm_atomic.c
411.10SriastradSRCS+=	drm_atomic_helper.c
421.2SriastradSRCS+=	drm_auth.c
431.10SriastradSRCS+=	drm_bridge.c
441.2SriastradSRCS+=	drm_bufs.c
451.2SriastradSRCS+=	drm_cache.c
461.2SriastradSRCS+=	drm_context.c
471.2SriastradSRCS+=	drm_crtc.c
481.2SriastradSRCS+=	drm_crtc_helper.c
491.10SriastradSRCS+=	drm_debugfs.c
501.2SriastradSRCS+=	drm_dma.c
511.2SriastradSRCS+=	drm_dp_helper.c
521.10SriastradSRCS+=	drm_dp_mst_topology.c
531.2SriastradSRCS+=	drm_drv.c
541.2SriastradSRCS+=	drm_edid.c
551.8SriastradSRCS+=	drm_encoder_slave.c
561.10SriastradSRCS+=	drm_fb_helper.c
571.3SriastradSRCS+=	drm_flip_work.c
581.2SriastradSRCS+=	drm_fops.c
591.2SriastradSRCS+=	drm_gem.c
601.2SriastradSRCS+=	drm_global.c
611.2SriastradSRCS+=	drm_hashtab.c
621.2Sriastrad#SRCS+=	drm_info.c		# XXX Rewrite for sysctl or something.
631.2SriastradSRCS+=	drm_ioctl.c
641.2SriastradSRCS+=	drm_irq.c
651.2SriastradSRCS+=	drm_lock.c
661.2SriastradSRCS+=	drm_memory.c
671.2SriastradSRCS+=	drm_mm.c
681.2SriastradSRCS+=	drm_modes.c
691.10SriastradSRCS+=	drm_modeset_lock.c
701.2Sriastrad#SRCS+=	drm_pci.c		# Moved to drmkms_pci module.
711.3SriastradSRCS+=	drm_plane_helper.c
721.2Sriastrad#SRCS+=	drm_platform.c		# XXX Rewrite per platform.
731.2Sriastrad#SRCS+=	drm_prime.c		# XXX Revisit later.
741.3SriastradSRCS+=	drm_probe_helper.c
751.3SriastradSRCS+=	drm_rect.c
761.2SriastradSRCS+=	drm_scatter.c
771.3SriastradSRCS+=	drm_sysfs.c
781.10SriastradSRCS+=	drm_trace_points.c
791.2SriastradSRCS+=	drm_vm.c
801.3SriastradSRCS+=	drm_vma_manager.c
811.2Sriastrad
821.2Sriastrad.include <bsd.kmodule.mk>
83