From 20888c6f102b6e46c225f25843266882cf5c215d Mon Sep 17 00:00:00 2001 From: mrg Date: Sat, 10 Dec 2016 10:42:43 +0000 Subject: [PATCH] enable sparc crash(8) builds. it's not very stable yet but it's not 100% useless. --- usr.sbin/crash/Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/usr.sbin/crash/Makefile b/usr.sbin/crash/Makefile index e267514dc4cd..e261765ead70 100644 --- a/usr.sbin/crash/Makefile +++ b/usr.sbin/crash/Makefile @@ -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 @@ DPADD+= ${LIBUTIL} ${LIBKVM} ${LIBEDIT} ${LIBTERMINFO} .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 @@ CPPFLAGS+= -I${S}/arch . if ${MACHINE} == "amd64" \ || ${MACHINE} == "i386" MACHINE_FAMILY = x86 -. elif ${MACHINE} == "sparc64" \ - || ${MACHINE} == "sparc64" +. elif ${MACHINE} == "sparc64" MACHINE_FAMILY = sparc . else MACHINE_FAMILY = ${MACHINE_CPU}