summaryrefslogtreecommitdiff
path: root/sys/modules
diff options
context:
space:
mode:
authorpgoyette <pgoyette@NetBSD.org>2015-12-01 23:58:19 +0000
committerpgoyette <pgoyette@NetBSD.org>2015-12-01 23:58:19 +0000
commitcbd94f14a251fb7dece656aa4ac94bd340d3686f (patch)
treea52a3a28233a74601a3081c3db0bed05a0c6b9f0 /sys/modules
parenta0b62638714efb10e970d390baf92a1f0a3f1eae (diff)
Create new compat_netbsd32_mqueue module, and descend into subdir to
build it.
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/Makefile5
-rw-r--r--sys/modules/compat_netbsd32/Makefile6
-rw-r--r--sys/modules/compat_netbsd32_mqueue/Makefile14
3 files changed, 21 insertions, 4 deletions
diff --git a/sys/modules/Makefile b/sys/modules/Makefile
index 55c0052c5ce..c0d1268b4a6 100644
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.158 2015/12/01 09:13:57 pgoyette Exp $
+# $NetBSD: Makefile,v 1.159 2015/12/01 23:58:19 pgoyette Exp $
.include <bsd.own.mk>
@@ -48,6 +48,7 @@ SUBDIR+= if_npflog
SUBDIR+= if_smsc
SUBDIR+= iic
SUBDIR+= kernfs
+SUBDIR+= ksem
SUBDIR+= layerfs
SUBDIR+= lfs
SUBDIR+= lua
@@ -211,12 +212,14 @@ SUBDIR+= wmimsi
|| (!empty(MACHINE_ARCH:Mmips64*) && !defined(BSD_MK_COMPAT_FILE))
SUBDIR+= compat_netbsd32
SUBDIR+= compat_netbsd32_nfssrv
+SUBDIR+= compat_netbsd32_mqueue
.endif
.if ${MACHINE_ARCH} == "x86_64"
SUBDIR+= compat_linux32
SUBDIR+= compat_netbsd32
SUBDIR+= compat_netbsd32_nfssrv
+SUBDIR+= compat_netbsd32_mqueue
.endif
.if ${MACHINE_ARCH} == "i386"
diff --git a/sys/modules/compat_netbsd32/Makefile b/sys/modules/compat_netbsd32/Makefile
index 5cf51a0b95d..04a2d9def0a 100644
--- a/sys/modules/compat_netbsd32/Makefile
+++ b/sys/modules/compat_netbsd32/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2015/12/01 09:13:58 pgoyette Exp $
+# $NetBSD: Makefile,v 1.17 2015/12/01 23:58:19 pgoyette Exp $
.include "../Makefile.inc"
.include "../Makefile.assym"
@@ -21,7 +21,7 @@ CPPFLAGS+= -DCOMPAT_43
CPPFLAGS+= -DSYSVSHM -DSYSVSEM -DSYSVMSG -DCOMPAT_NETBSD32
CPPFLAGS+= -DEXEC_ELF32 -DEXEC_ELF64
CPPFLAGS+= -DCOREDUMP -DNTP -DVMSWAP
-CPPFLAGS+= -DNTP -DMQUEUE
+CPPFLAGS+= -DNTP
.PATH: ${S}/compat/netbsd32
SRCS+= netbsd32_compat_09.c netbsd32_compat_10.c
@@ -39,7 +39,7 @@ SRCS+= netbsd32_sem.c netbsd32_signal.c
SRCS+= netbsd32_socket.c netbsd32_syscalls.c
SRCS+= netbsd32_sysctl.c netbsd32_sysent.c
SRCS+= netbsd32_time.c netbsd32_wait.c
-SRCS+= netbsd32_mod.c netbsd32_mqueue.c netbsd32_module.c
+SRCS+= netbsd32_mod.c netbsd32_module.c
.if ${MACHINE_CPU} != "mips" && ${MACHINE_CPU} != "powerpc"
CPPFLAGS+= -DEXEC_AOUT -DCOMPAT_NOMID
diff --git a/sys/modules/compat_netbsd32_mqueue/Makefile b/sys/modules/compat_netbsd32_mqueue/Makefile
new file mode 100644
index 00000000000..4c3013821c6
--- /dev/null
+++ b/sys/modules/compat_netbsd32_mqueue/Makefile
@@ -0,0 +1,14 @@
+# $NetBSD: Makefile,v 1.1 2015/12/01 23:58:19 pgoyette Exp $
+
+.include "../Makefile.inc"
+.include "../Makefile.assym"
+
+KMOD= compat_netbsd32_mqueue
+
+CPPFLAGS+= -DCOMPAT_NETBSD32 -DCOMPAT_50
+CPPFLAGS+= -DMQUEUE
+
+.PATH: ${S}/compat/netbsd32
+SRCS+= netbsd32_mqueue.c
+
+.include <bsd.kmodule.mk>