Module Name:    src
Committed By:   christos
Date:           Sun Apr 25 21:55:58 UTC 2021

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

Log Message:
make MACHINE_MIPS a boolean not a condition


To generate a diff of this commit:
cvs rdiff -u -r1.1245 -r1.1246 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.own.mk
diff -u src/share/mk/bsd.own.mk:1.1245 src/share/mk/bsd.own.mk:1.1246
--- src/share/mk/bsd.own.mk:1.1245	Sun Apr 25 11:33:15 2021
+++ src/share/mk/bsd.own.mk	Sun Apr 25 17:55:58 2021
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.1245 2021/04/25 15:33:15 rin Exp $
+#	$NetBSD: bsd.own.mk,v 1.1246 2021/04/25 21:55:58 christos Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -16,10 +16,14 @@ MAKECONF?=	/etc/mk.conf
 #
 MACHINE_CPU=	${MACHINE_ARCH:C/mips.*e[bl]/mips/:C/sh3e[bl]/sh3/:S/coldfire/m68k/:S/m68000/m68k/:C/e?arm.*/arm/:S/powerpc64/powerpc/:S/aarch64eb/aarch64/:S/or1knd/or1k/:C/riscv../riscv/}
 
-MACHINE_MIPS64= (${MACHINE_ARCH} == "mips64el" || \
-		 ${MACHINE_ARCH} == "mips64eb" || \
-		 ${MACHINE_ARCH} == "mipsn64el" || \
-		 ${MACHINE_ARCH} == "mipsn64eb")
+.if (${MACHINE_ARCH} == "mips64el" || \
+     ${MACHINE_ARCH} == "mips64eb" || \
+     ${MACHINE_ARCH} == "mipsn64el" || \
+     ${MACHINE_ARCH} == "mipsn64eb")
+MACHINE_MIPS64= 	1
+.else
+MACHINE_MIPS64= 	0
+.endif
 
 #
 # Subdirectory used below ${RELEASEDIR} when building a release

Reply via email to