Module Name:    src
Committed By:   skrll
Date:           Tue Nov 19 18:15:29 UTC 2024

Modified Files:
        src/usr.sbin/crash: Makefile

Log Message:
Sort a condition. NFCI.


To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/usr.sbin/crash/Makefile

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

Modified files:

Index: src/usr.sbin/crash/Makefile
diff -u src/usr.sbin/crash/Makefile:1.51 src/usr.sbin/crash/Makefile:1.52
--- src/usr.sbin/crash/Makefile:1.51	Fri Apr 26 22:07:32 2024
+++ src/usr.sbin/crash/Makefile	Tue Nov 19 18:15:29 2024
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.51 2024/04/26 22:07:32 christos Exp $
+#	$NetBSD: Makefile,v 1.52 2024/11/19 18:15:29 skrll Exp $
 
 PROG=		crash
 MAN=		crash.8
@@ -13,18 +13,19 @@ DPADD+=	${LIBUTIL} ${LIBKVM} ${LIBEDIT} 
 
 # some ddb kernel components need limited modifications.  for now,
 # punt if not noted as implemented here.
-.if    ${MACHINE} == "amd64" \
-    || ${MACHINE} == "hppa" \
-    || ${MACHINE} == "i386" \
-    || ${MACHINE} == "sparc" \
-    || ${MACHINE} == "sparc64" \
+.if \
+       ${MACHINE_CPU} == "aarch64" \
     || ${MACHINE_CPU} == "arm" \
-    || ${MACHINE_CPU} == "aarch64" \
     || ${MACHINE_CPU} == "mips" \
     || ${MACHINE_ARCH} == "alpha" \
     || ${MACHINE_ARCH} == "m68k" \
     || ${MACHINE_ARCH} == "powerpc" \
-    || ${MACHINE_ARCH} == "powerpc64"
+    || ${MACHINE_ARCH} == "powerpc64" \
+    || ${MACHINE} == "amd64" \
+    || ${MACHINE} == "hppa" \
+    || ${MACHINE} == "i386" \
+    || ${MACHINE} == "sparc" \
+    || ${MACHINE} == "sparc64"
 SRCS+=	db_trace.c
 .if ${MACHINE_ARCH} == "alpha"
 SRCS+=	db_interface.c

Reply via email to