Module Name: src
Committed By: christos
Date: Sun Jan 24 01:01:43 UTC 2016
Modified Files:
src/sys/modules/dtrace/lockstat: Makefile
Log Message:
Instead of hard-coding who has cpu counters why don't you look for them?
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/modules/dtrace/lockstat/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/modules/dtrace/lockstat/Makefile
diff -u src/sys/modules/dtrace/lockstat/Makefile:1.2 src/sys/modules/dtrace/lockstat/Makefile:1.3
--- src/sys/modules/dtrace/lockstat/Makefile:1.2 Thu Sep 10 15:57:48 2015
+++ src/sys/modules/dtrace/lockstat/Makefile Sat Jan 23 20:01:43 2016
@@ -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 @@ SRCS= lockstat.c
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