Module Name: src
Committed By: pooka
Date: Thu Apr 23 14:39:03 UTC 2015
Modified Files:
src/sys/rump: Makefile.rump README.compileopts
Log Message:
For RUMP_COMPAT, accept "all" as an alias.
Also accept a comma-separated list, since that's easier to pass through
shells than a whitespace-separated list.
To generate a diff of this commit:
cvs rdiff -u -r1.108 -r1.109 src/sys/rump/Makefile.rump
cvs rdiff -u -r1.6 -r1.7 src/sys/rump/README.compileopts
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/rump/Makefile.rump
diff -u src/sys/rump/Makefile.rump:1.108 src/sys/rump/Makefile.rump:1.109
--- src/sys/rump/Makefile.rump:1.108 Thu Apr 23 10:52:18 2015
+++ src/sys/rump/Makefile.rump Thu Apr 23 14:39:03 2015
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.rump,v 1.108 2015/04/23 10:52:18 pooka Exp $
+# $NetBSD: Makefile.rump,v 1.109 2015/04/23 14:39:03 pooka Exp $
#
.if !defined(_RUMP_MK)
@@ -30,6 +30,11 @@ CPPFLAGS+= -DMIPS1=1
.endif
RUMP_COMPAT?= 60 70
+.if ${RUMP_COMPAT} == "all"
+RUMP_COMPAT= 50 60 70
+.endif
+# normalize alternatively accepted comma-separated list
+RUMP_COMPAT:= ${RUMP_COMPAT:S/,/ /g}
CPPFLAGS+= ${RUMP_COMPAT:C/[1-9]0/-DCOMPAT_&/g}
CPPFLAGS+= -DMAXUSERS=32
Index: src/sys/rump/README.compileopts
diff -u src/sys/rump/README.compileopts:1.6 src/sys/rump/README.compileopts:1.7
--- src/sys/rump/README.compileopts:1.6 Fri Jul 11 20:26:31 2014
+++ src/sys/rump/README.compileopts Thu Apr 23 14:39:03 2015
@@ -1,4 +1,4 @@
- $NetBSD: README.compileopts,v 1.6 2014/07/11 20:26:31 justin Exp $
+ $NetBSD: README.compileopts,v 1.7 2015/04/23 14:39:03 pooka Exp $
This file describes compile-time options for rump kernels. Additionally,
NetBSD build options will have an effect. See src/share/mk/bsd.README
@@ -77,6 +77,15 @@ effect: Control how curlwp is obtained i
register - use a dedicated register (implies -ffixed)
+ RUMP_COMPAT
+
+values: either a comma-separated list of releases (e.g. 50,60), or "all"
+defval: two previous NetBSD releases; check Makefile.rump
+effect: Builds COMPAT_nn code for each of the elements in the list.
+ This is only useful when building rump kernels for NetBSD
+ userspace.
+
+
================================================================================
Rumpuser options: