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 Instead of hard-coding who has c...
details: https://anonhg.NetBSD.org/src/rev/e91898988c66
branches: trunk
changeset: 343166:e91898988c66
user: christos <christos%NetBSD.org@localhost>
date: Sun Jan 24 01:01:43 2016 +0000
description:
Instead of hard-coding who has cpu counters why don't you look for them?
diffstat:
sys/modules/dtrace/lockstat/Makefile | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 9f2b9a51533f -r e91898988c66 sys/modules/dtrace/lockstat/Makefile
--- a/sys/modules/dtrace/lockstat/Makefile Sun Jan 24 01:01:11 2016 +0000
+++ b/sys/modules/dtrace/lockstat/Makefile Sun Jan 24 01:01:43 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2015/09/10 19:57:48 riz Exp $
+# $NetBSD: Makefile,v 1.3 2016/01/24 01:01:43 christos Exp $
.include "../../Makefile.inc"
@@ -10,7 +10,7 @@
CPPFLAGS+= -I${NETBSDSRCDIR}/external/cddl/osnet/sys
CPPFLAGS+= -I${NETBSDSRCDIR}/external/cddl/osnet/dist/uts/common
CPPFLAGS+= -DKDTRACE_HOOKS
-.if (!empty(MACHINE_ARCH:Mearm*) || !empty(MACHINE_ARCH:Marm*))
+.if exists(${DESTDIR}/usr/include/machine/cpu_counter.h)
CPPFLAGS+= -D__HAVE_CPU_COUNTER
.endif
Home |
Main Index |
Thread Index |
Old Index