Source-Changes-HG archive

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

[src/trunk]: src/share/mk make MACHINE_MIPS a boolean not a condition



details:   https://anonhg.NetBSD.org/src/rev/a421267a919d
branches:  trunk
changeset: 378820:a421267a919d
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Apr 25 21:55:58 2021 +0000

description:
make MACHINE_MIPS a boolean not a condition

diffstat:

 share/mk/bsd.own.mk |  14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diffs (28 lines):

diff -r 1897f9a8e42f -r a421267a919d share/mk/bsd.own.mk
--- a/share/mk/bsd.own.mk       Sun Apr 25 21:05:38 2021 +0000
+++ b/share/mk/bsd.own.mk       Sun Apr 25 21:55:58 2021 +0000
@@ -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



Home | Main Index | Thread Index | Old Index