summaryrefslogtreecommitdiff
path: root/sys/modules/drmkms_linux/Makefile
blob: 3d0919030479bcccb0fbd846e773275428ec86c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# $NetBSD: Makefile,v 1.12 2019/02/17 04:05:47 rin Exp $

#
# At some point this needs to turn into linux.kmod and a proper home for it
# found.  For now pickup the linux_work.c from the (increasingly poorly
# named) common area.
#

.include "../Makefile.inc"

.PATH: ${S}/external/bsd/common/linux
.PATH: ${S}/external/bsd/drm2/linux

CPPFLAGS+=	-I${S}/external/bsd/common/include
CPPFLAGS+=	-I${S}/external/bsd/drm2/include

# XXX Kludge!
CPPFLAGS+=	-DDIAGNOSTIC

KMOD=	drmkms_linux

SRCS+=	linux_atomic64.c
SRCS+=	linux_dma_buf.c
SRCS+=	linux_dmi.c
SRCS+=	linux_fence.c
SRCS+=	linux_i2c.c
SRCS+=	linux_idr.c
SRCS+=	linux_kmap.c
SRCS+=	linux_list_sort.c
SRCS+=	linux_module.c
SRCS+=	linux_rcu.c
SRCS+=	linux_reservation.c
SRCS+=	linux_work.c		# XXX Move me to linux.kmod.
SRCS+=	linux_writecomb.c
SRCS+=	linux_ww_mutex.c

WARNS=	3

.include <bsd.kmodule.mk>