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/870623b6c7c2
branches:  trunk
changeset: 961942:870623b6c7c2
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 d457f76d5f72 -r 870623b6c7c2 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 @@
 #
 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