Tue Dec 30 21:31:10 2008 UTC ()
Move list of rump-uses-kmod archs to bsd.own.mk for wider consumption.


(pooka)
diff -r1.552 -r1.553 src/share/mk/bsd.own.mk
diff -r1.19 -r1.20 src/sys/rump/Makefile.rump

cvs diff -r1.552 -r1.553 src/share/mk/bsd.own.mk (expand / switch to context diff)
--- src/share/mk/bsd.own.mk 2008/12/23 02:54:11 1.552
+++ src/share/mk/bsd.own.mk 2008/12/30 21:31:10 1.553
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.552 2008/12/23 02:54:11 agc Exp $
+#	$NetBSD: bsd.own.mk,v 1.553 2008/12/30 21:31:10 pooka Exp $
 
 .if !defined(_BSD_OWN_MK_)
 _BSD_OWN_MK_=1
@@ -550,6 +550,14 @@
 MACHINE_GNU_PLATFORM?=${MACHINE_GNU_ARCH}--netbsdelf
 .else
 MACHINE_GNU_PLATFORM?=${MACHINE_GNU_ARCH}--netbsd
+.endif
+
+#
+# Determine if arch uses native kernel modules with rump
+#
+.if ${MACHINE_ARCH} == "i386" || \
+    ${MACHINE_ARCH} == "x86_64"
+RUMPKMOD=	# defined
 .endif
 
 TARGETS+=	all clean cleandir depend dependall includes \

cvs diff -r1.19 -r1.20 src/sys/rump/Makefile.rump (expand / switch to context diff)
--- src/sys/rump/Makefile.rump 2008/12/30 19:05:40 1.19
+++ src/sys/rump/Makefile.rump 2008/12/30 21:31:10 1.20
@@ -1,12 +1,13 @@
-#	$NetBSD: Makefile.rump,v 1.19 2008/12/30 19:05:40 pooka Exp $
+#	$NetBSD: Makefile.rump,v 1.20 2008/12/30 21:31:10 pooka Exp $
 #
 
 WARNS?=		4
 NOLINT=		# kernel code
 
+.include <bsd.own.mk>
+
 # use kernel ABI instead of rump ABI (needs md code)
-.if ${MACHINE_ARCH} != "i386" && \
-    ${MACHINE_ARCH} != "x86_64"
+.ifndef(RUMPKMOD)
 CPPFLAGS:=	-I${RUMPTOP}/include ${CPPFLAGS}
 .endif