Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump Add "all" and "none" as acceptable RUMP_NBCOMPAT va...
details: https://anonhg.NetBSD.org/src/rev/c079ad10122b
branches: trunk
changeset: 808805:c079ad10122b
user: pooka <pooka%NetBSD.org@localhost>
date: Wed Jun 03 10:49:14 2015 +0000
description:
Add "all" and "none" as acceptable RUMP_NBCOMPAT value aliases to
undefined and empty, respectively.
diffstat:
sys/rump/Makefile.rump | 12 +++++++++---
sys/rump/README.compileopts | 4 ++--
2 files changed, 11 insertions(+), 5 deletions(-)
diffs (44 lines):
diff -r 3ad07f242e0d -r c079ad10122b sys/rump/Makefile.rump
--- a/sys/rump/Makefile.rump Wed Jun 03 10:23:08 2015 +0000
+++ b/sys/rump/Makefile.rump Wed Jun 03 10:49:14 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.rump,v 1.111 2015/04/24 06:29:56 pooka Exp $
+# $NetBSD: Makefile.rump,v 1.112 2015/06/03 10:49:14 pooka Exp $
#
.if !defined(_RUMP_MK)
@@ -29,8 +29,14 @@
.endif
.endif
-RUMP_NBCOMPAT?= 50 60 70
-# normalize alternatively accepted comma-separated list
+# which NetBSD compat to build
+RUMP_NBCOMPAT?=all
+.if ${RUMP_NBCOMPAT} == "all"
+RUMP_NBCOMPAT= 50 60 70
+.endif
+.if ${RUMP_NBCOMPAT} == "none"
+RUMP_NBCOMPAT=
+.endif
RUMP_NBCOMPAT:= ${RUMP_NBCOMPAT:S/,/ /g}
CPPFLAGS+= ${RUMP_NBCOMPAT:C/[1-9]0/-DCOMPAT_&/g}
diff -r 3ad07f242e0d -r c079ad10122b sys/rump/README.compileopts
--- a/sys/rump/README.compileopts Wed Jun 03 10:23:08 2015 +0000
+++ b/sys/rump/README.compileopts Wed Jun 03 10:49:14 2015 +0000
@@ -1,4 +1,4 @@
- $NetBSD: README.compileopts,v 1.9 2015/04/24 06:29:56 pooka Exp $
+ $NetBSD: README.compileopts,v 1.10 2015/06/03 10:49:14 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
@@ -79,7 +79,7 @@
RUMP_NBCOMPAT
-values: comma-separated list of releases, e.g. 60,70
+values: comma-separated list of releases; e.g. "60,70"; or "all" or "none"
defval: all
effect: Builds NetBSD COMPAT_nn code for each of the elements in the list.
This option is useful only when building rump kernels for
Home |
Main Index |
Thread Index |
Old Index