Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/modules/compat_netbsd32 Add netbsd32 drm support from Su...
details: https://anonhg.NetBSD.org/src/rev/957989f26be7
branches: trunk
changeset: 964864:957989f26be7
user: christos <christos%NetBSD.org@localhost>
date: Tue Aug 20 09:36:40 2019 +0000
description:
Add netbsd32 drm support from Surya Shankar at GSoC 2019
diffstat:
sys/modules/compat_netbsd32/Makefile | 18 +++++++++++++++++-
1 files changed, 17 insertions(+), 1 deletions(-)
diffs (38 lines):
diff -r 748e11f8c35a -r 957989f26be7 sys/modules/compat_netbsd32/Makefile
--- a/sys/modules/compat_netbsd32/Makefile Tue Aug 20 09:32:21 2019 +0000
+++ b/sys/modules/compat_netbsd32/Makefile Tue Aug 20 09:36:40 2019 +0000
@@ -1,17 +1,33 @@
-# $NetBSD: Makefile,v 1.25 2019/06/18 01:40:29 christos Exp $
+# $NetBSD: Makefile,v 1.26 2019/08/20 09:36:40 christos Exp $
.include "../Makefile.inc"
.include "../Makefile.assym"
KMOD= compat_netbsd32
+.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
+NETBSD32_DRMKMS?=yes
+.endif
+
CPPFLAGS+= -DCOMPAT_NETBSD32
CPPFLAGS+= -DEXEC_ELF32 -DEXEC_ELF64
CPPFLAGS+= -DCOREDUMP -DNTP -DVMSWAP
CPPFLAGS+= -DKTRACE -DMODULAR -DQUOTA
CPPFLAGS+= -I${NETBSDSRCDIR}/sys/external/bsd/libnv/dist
+.if ${NETBSD32_DRMKMS:Uno} == "yes"
+CPPFLAGS+= -DNETBSD32_DRMKMS
+CPPFLAGS+= -I${NETBSDSRCDIR}/sys/external/bsd/common/include
+CPPFLAGS+= -I${NETBSDSRCDIR}/sys/external/bsd/drm2/include
+CPPFLAGS+= -I${NETBSDSRCDIR}/sys/external/bsd/drm2/dist
+CPPFLAGS+= -I${NETBSDSRCDIR}/sys/external/bsd/drm2/dist/include
+CPPFLAGS+= -I${NETBSDSRCDIR}/sys/external/bsd/drm2/dist/uapi
+.endif
+
.PATH: ${S}/compat/netbsd32
+.if ${NETBSD32_DRMKMS:Uno} == "yes"
+SRCS+= netbsd32_drm.c
+.endif
SRCS+= netbsd32_core.c netbsd32_event.c
SRCS+= netbsd32_exec_elf32.c netbsd32_execve.c
SRCS+= netbsd32_fd.c netbsd32_fs.c
Home |
Main Index |
Thread Index |
Old Index