summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authoragc <agc>1998-05-29 13:57:09 +0000
committeragc <agc>1998-05-29 13:57:09 +0000
commite6494946299cc2674d47aeda92a1f6b286997ccc (patch)
tree2d4b807777fcb093c66cc9d37faaeb4e674fe18e /mk
parentbf58da3c6cb5e590dff78b4153251a09de24f78c (diff)
downloadpkgsrc-e6494946299cc2674d47aeda92a1f6b286997ccc.tar.gz
Sync with the version in src/share/mk.
As this file may be used on hosts which are not NetBSD-current, add a check that a version of -current is being used before setting UVM dependent on platform.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.own.mk35
1 files changed, 32 insertions, 3 deletions
diff --git a/mk/bsd.own.mk b/mk/bsd.own.mk
index 6085c5b9e17..45f5a6e01a3 100644
--- a/mk/bsd.own.mk
+++ b/mk/bsd.own.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.own.mk,v 1.3 1998/05/25 23:40:21 tv Exp $
+# $NetBSD: bsd.own.mk,v 1.4 1998/05/29 13:57:09 agc Exp $
.if !defined(_BSD_OWN_MK_)
_BSD_OWN_MK_=1
@@ -66,6 +66,35 @@ STRIPFLAG?= -s
# in environments where it's not possible to keep /sys publicly readable)
#SYS_INCLUDE= symlinks
+# XXX The next two are temporary until the transition to UVM is complete.
+
+
+# The NETBSD_CURRENT checks are to make sure that UVM is defined only
+# if the user is running a NetBSD-current, as well as the right platform
+# I'm told that 1.3C was the first version with UVM XXX - agc
+.if !defined(UVM)
+NETBSD_CURRENT!= /usr/bin/uname -r | /usr/bin/sed -e 's|^1\.3[C-Z]$$|yes|'
+
+.if (${NETBSD_CURRENT} == "yes")
+# Systems on which UVM is the standard VM system.
+.if (${MACHINE} == "alpha") || \
+ (${MACHINE} == "hp300") || \
+ (${MACHINE} == "mac68k") || \
+ (${MACHINE} == "mvme68k") || \
+ (${MACHINE} == "sparc")
+UVM?= yes
+.endif
+
+# Systems that use UVM's new pmap interface.
+.if (${MACHINE} == "alpha")
+PMAP_NEW?= yes
+.endif
+
+.endif # NetBSD-current
+
+.endif # !UVM
+
+
# don't try to generate PIC versions of libraries on machines
# which don't support PIC.
.if (${MACHINE_ARCH} == "vax") || \
@@ -88,12 +117,12 @@ OBJECT_FMT?=ELF
OBJECT_FMT?=a.out
.endif
-
# No lint, for now.
# all machines on which we are okay should be added here until we can
# get rid of the whole "NOLINT by default" thing.
-.if (${MACHINE} == "i386")
+.if (${MACHINE} == "i386") || \
+ (${MACHINE} == "sparc")
NONOLINT=1
.endif