Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/crash enable sparc crash(8) builds.



details:   https://anonhg.NetBSD.org/src/rev/e12bdb358686
branches:  trunk
changeset: 819556:e12bdb358686
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sat Dec 10 10:42:43 2016 +0000

description:
enable sparc crash(8) builds.
it's not very stable yet but it's not 100% useless.

diffstat:

 usr.sbin/crash/Makefile |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r 124384a119a1 -r e12bdb358686 usr.sbin/crash/Makefile
--- a/usr.sbin/crash/Makefile   Sat Dec 10 10:41:07 2016 +0000
+++ b/usr.sbin/crash/Makefile   Sat Dec 10 10:42:43 2016 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.31 2015/06/16 23:48:20 christos Exp $
+#      $NetBSD: Makefile,v 1.32 2016/12/10 10:42:43 mrg Exp $
 
 PROG=          crash
 MAN=           crash.8
@@ -16,11 +16,14 @@
 .if    ${MACHINE} == "amd64" \
     || ${MACHINE} == "hppa" \
     || ${MACHINE} == "i386" \
+    || ${MACHINE} == "sparc" \
     || ${MACHINE} == "sparc64" \
     || (${MACHINE_CPU} == "arm" && ${MACHINE} != "acorn26") \
     || ${MACHINE_ARCH} == "m68k"
 SRCS+= db_trace.c
-.if ${MACHINE_ARCH} != "m68k"
+.if ${MACHINE_ARCH} == "sparc"
+SRCS+= db_interface.c
+.elif ${MACHINE_ARCH} != "m68k"
 SRCS+= db_machdep.c
 .endif
 REALCRASH=yes
@@ -56,8 +59,7 @@
 . if    ${MACHINE} == "amd64" \
      || ${MACHINE} == "i386"
 MACHINE_FAMILY = x86
-. elif    ${MACHINE} == "sparc64" \
-     || ${MACHINE} == "sparc64"
+. elif  ${MACHINE} == "sparc64"
 MACHINE_FAMILY = sparc
 . else
 MACHINE_FAMILY = ${MACHINE_CPU}



Home | Main Index | Thread Index | Old Index