Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/modules/dtrace/lockstat Grr. arm is different.
details: https://anonhg.NetBSD.org/src/rev/5eb22f7c55e6
branches: trunk
changeset: 343167:5eb22f7c55e6
user: christos <christos%NetBSD.org@localhost>
date: Sun Jan 24 01:12:06 2016 +0000
description:
Grr. arm is different.
diffstat:
sys/modules/dtrace/lockstat/Makefile | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r e91898988c66 -r 5eb22f7c55e6 sys/modules/dtrace/lockstat/Makefile
--- a/sys/modules/dtrace/lockstat/Makefile Sun Jan 24 01:01:43 2016 +0000
+++ b/sys/modules/dtrace/lockstat/Makefile Sun Jan 24 01:12:06 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2016/01/24 01:01:43 christos Exp $
+# $NetBSD: Makefile,v 1.4 2016/01/24 01:12:06 christos Exp $
.include "../../Makefile.inc"
@@ -10,7 +10,16 @@
CPPFLAGS+= -I${NETBSDSRCDIR}/external/cddl/osnet/sys
CPPFLAGS+= -I${NETBSDSRCDIR}/external/cddl/osnet/dist/uts/common
CPPFLAGS+= -DKDTRACE_HOOKS
-.if exists(${DESTDIR}/usr/include/machine/cpu_counter.h)
+
+.if !empty(MACHINE_ARCH:Mearm*)
+ARMV:= ${MACHINE_ARCH:S/earmv//}
+.elif !empty(MACHINE_ARCH:Marm*)
+ARMV:= ${MACHINE_ARCH:S/armv//}
+.else
+ARMV:= 0
+.endif
+
+.if ${ARMV} > 4
CPPFLAGS+= -D__HAVE_CPU_COUNTER
.endif
Home |
Main Index |
Thread Index |
Old Index