Module Name:    src
Committed By:   christos
Date:           Sun Jan 24 01:12:06 UTC 2016

Modified Files:
        src/sys/modules/dtrace/lockstat: Makefile

Log Message:
Grr. arm is different.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 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.3 src/sys/modules/dtrace/lockstat/Makefile:1.4
--- src/sys/modules/dtrace/lockstat/Makefile:1.3	Sat Jan 23 20:01:43 2016
+++ src/sys/modules/dtrace/lockstat/Makefile	Sat Jan 23 20:12:06 2016
@@ -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 @@ SRCS=		lockstat.c
 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
 

Reply via email to