Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/rump For RUMP_COMPAT, accept "all" as an alias.



details:   https://anonhg.NetBSD.org/src/rev/802ef33a1150
branches:  trunk
changeset: 807826:802ef33a1150
user:      pooka <pooka%NetBSD.org@localhost>
date:      Thu Apr 23 14:39:03 2015 +0000

description:
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.

diffstat:

 sys/rump/Makefile.rump      |   7 ++++++-
 sys/rump/README.compileopts |  11 ++++++++++-
 2 files changed, 16 insertions(+), 2 deletions(-)

diffs (46 lines):

diff -r 04c3da5bd12f -r 802ef33a1150 sys/rump/Makefile.rump
--- a/sys/rump/Makefile.rump    Thu Apr 23 13:51:53 2015 +0000
+++ b/sys/rump/Makefile.rump    Thu Apr 23 14:39:03 2015 +0000
@@ -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 @@
 .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
diff -r 04c3da5bd12f -r 802ef33a1150 sys/rump/README.compileopts
--- a/sys/rump/README.compileopts       Thu Apr 23 13:51:53 2015 +0000
+++ b/sys/rump/README.compileopts       Thu Apr 23 14:39:03 2015 +0000
@@ -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 @@
        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:



Home | Main Index | Thread Index | Old Index