Module Name:    src
Committed By:   christos
Date:           Sun Jan  8 17:40:45 UTC 2017

Modified Files:
        src/share/mk: bsd.lib.mk bsd.own.mk

Log Message:
- centralize setting of MK* vars in bsd.own.mk
- make sure that the default setting of all vars is done in _MKVARS.{yes,no}
  if possible.


To generate a diff of this commit:
cvs rdiff -u -r1.367 -r1.368 src/share/mk/bsd.lib.mk
cvs rdiff -u -r1.1000 -r1.1001 src/share/mk/bsd.own.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/mk/bsd.lib.mk
diff -u src/share/mk/bsd.lib.mk:1.367 src/share/mk/bsd.lib.mk:1.368
--- src/share/mk/bsd.lib.mk:1.367	Sat Mar 12 18:08:58 2016
+++ src/share/mk/bsd.lib.mk	Sun Jan  8 12:40:44 2017
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.lib.mk,v 1.367 2016/03/12 23:08:58 mrg Exp $
+#	$NetBSD: bsd.lib.mk,v 1.368 2017/01/08 17:40:44 christos Exp $
 #	@(#)bsd.lib.mk	8.3 (Berkeley) 4/22/94
 
 .include <bsd.init.mk>
@@ -525,8 +525,6 @@ _YLSRCS=	${SRCS:M*.[ly]:C/\..$/.c/} ${YH
 
 realall: ${SRCS} ${ALLOBJS:O} ${_LIBS} ${_LIB.so.debug}
 
-MKARZERO?= ${MKREPRO:Uno}
-
 .if ${MKARZERO} == "yes"
 _ARFL=crsD
 _ARRANFL=sD

Index: src/share/mk/bsd.own.mk
diff -u src/share/mk/bsd.own.mk:1.1000 src/share/mk/bsd.own.mk:1.1001
--- src/share/mk/bsd.own.mk:1.1000	Sat Jan  7 17:27:36 2017
+++ src/share/mk/bsd.own.mk	Sun Jan  8 12:40:44 2017
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.1000 2017/01/07 22:27:36 christos Exp $
+#	$NetBSD: bsd.own.mk,v 1.1001 2017/01/08 17:40:44 christos Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -654,22 +654,6 @@ check_RELEASEDIR: .PHONY .NOTMAIN
 .endif
 
 #
-# Build a dynamically linked /bin and /sbin, with the necessary shared
-# libraries moved from /usr/lib to /lib and the shared linker moved
-# from /usr/libexec to /lib
-#
-# Note that if the BINDIR is not /bin or /sbin, then we always use the
-# non-DYNAMICROOT behavior (i.e. it is only enabled for programs in /bin
-# and /sbin).  See <bsd.shlib.mk>.
-#
-MKDYNAMICROOT?=	yes
-
-# For ia64, ld.elf_so not yet implemented
-.if ${MACHINE_ARCH} == "ia64"
-MKDYNAMICROOT=	no
-.endif
-
-#
 # Where the system object and source trees are kept; can be configurable
 # by the user in case they want them in ~/foosrc and ~/fooobj (for example).
 #
@@ -999,20 +983,6 @@ MKSOFTFLOAT?=	yes
 SOFTFLOAT_BITS=	32
 .endif
 
-.if ${MACHINE_ARCH} == "i386" || \
-    ${MACHINE_ARCH} == "x86_64" || \
-    ${MACHINE_ARCH} == "sparc" 
-MKSLJIT?=	yes
-.else
-MKSLJIT?=	no
-.endif
-
-#
-# MK* backward compatibility.
-#
-.if defined(MKBFD)
-MKBINUTILS?=	${MKBFD}
-.endif
 
 #
 # We want to build zfs only for amd64 by default for now.
@@ -1064,6 +1034,7 @@ _MKVARS.yes= \
 	MKBINUTILS \
 	MKCRYPTO MKCOMPLEX MKCVS MKCXX \
 	MKDOC \
+	MKDYNAMICROOT \
 	MKGCC MKGDB MKGROFF \
 	MKHESIOD MKHTML \
 	MKIEEEFP MKINET6 MKINFO MKIPFILTER MKISCSI \
@@ -1106,24 +1077,52 @@ MKRUMP=		no
 .endif
 
 #
+# Build a dynamically linked /bin and /sbin, with the necessary shared
+# libraries moved from /usr/lib to /lib and the shared linker moved
+# from /usr/libexec to /lib
+#
+# Note that if the BINDIR is not /bin or /sbin, then we always use the
+# non-DYNAMICROOT behavior (i.e. it is only enabled for programs in /bin
+# and /sbin).  See <bsd.shlib.mk>.
+#
+# For ia64, ld.elf_so not yet implemented
+.if ${MACHINE_ARCH} == "ia64"
+MKDYNAMICROOT=	no
+.endif
+
+.if defined(MKREPRO)
+MKARZERO ?= ${MKREPRO}
+.endif
+
+#
 # MK* options which default to "no".  Note that MKZFS has a different
 # default for some platforms, see above.
 #
 _MKVARS.no= \
+	MKARZERO \
 	MKBSDGREP MKBSDTAR \
 	MKCATPAGES MKCOMPATTESTS MKCOMPATX11 MKCRYPTO_RC5 MKCTF MKDEBUG \
 	MKDEBUGLIB MKDTRACE MKEXTSRC MKGROFFHTMLDOC \
 	MKKYUA MKLLD MKLLDB MKLINT \
 	MKMANZ MKMCLINKER MKOBJDIRS \
+	MKSLJIT \
 	MKLIBCXX MKLLVM MKNSD MKPCC \
 	MKPIGZGZIP \
+	MKRADEONFIRMWARE \
 	MKREPRO \
 	MKSOFTFLOAT MKSTRIPIDENT MKTPM \
+	MKXORG_SERVER \
 	MKUNPRIVED MKUPDATE MKX11 MKX11MOTIF MKZFS
 .for var in ${_MKVARS.no}
 ${var}?=	${${var}.${MACHINE_ARCH}:Uno}
 .endfor
 
+.if ${MACHINE_ARCH} == "i386" || \
+    ${MACHINE_ARCH} == "x86_64" || \
+    ${MACHINE_ARCH} == "sparc" 
+MKSLJIT=	yes
+.endif
+
 #
 # Which platforms build the xorg-server drivers (as opposed
 # to just Xnest and Xvfb.)
@@ -1156,9 +1155,13 @@ ${var}?=	${${var}.${MACHINE_ARCH}:Uno}
     ${MACHINE} == "sparc64"	|| \
     ${MACHINE} == "vax"		|| \
     ${MACHINE} == "zaurus"
-MKXORG_SERVER?=yes
+MKXORG_SERVER=yes
 .else
-MKXORG_SERVER?=no
+.endif
+
+# Only install the radeon firmware on DRM-happy systems.
+.if ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "i386"
+MKRADEONFIRMWARE=		yes
 .endif
 
 #
@@ -1453,11 +1456,6 @@ EXTRA_DRIVERS=	modesetting 
 X11SRCDIR.xf86-video-${_v}?=	${X11SRCDIRMIT}/xf86-video-${_v}/dist
 .endfor
 
-# Only install the radeon firmware on DRM-happy systems.
-.if ${MACHINE_ARCH} == "x86_64" || ${MACHINE_ARCH} == "i386"
-MKRADEONFIRMWARE?=		yes
-.endif
-MKRADEONFIRMWARE?=		no
 
 X11DRI?=			yes
 X11LOADABLE?=			yes

Reply via email to