head	1.9;
access;
symbols
	netbsd-11-0-RC3:1.9
	netbsd-11-0-RC2:1.9
	netbsd-11-0-RC1:1.9
	perseant-exfatfs-base-20250801:1.9
	netbsd-11:1.9.0.58
	netbsd-11-base:1.9
	netbsd-10-1-RELEASE:1.9
	perseant-exfatfs-base-20240630:1.9
	perseant-exfatfs:1.9.0.56
	perseant-exfatfs-base:1.9
	netbsd-8-3-RELEASE:1.9
	netbsd-9-4-RELEASE:1.9
	netbsd-10-0-RELEASE:1.9
	netbsd-10-0-RC6:1.9
	netbsd-10-0-RC5:1.9
	netbsd-10-0-RC4:1.9
	netbsd-10-0-RC3:1.9
	netbsd-10-0-RC2:1.9
	thorpej-ifq:1.9.0.54
	thorpej-ifq-base:1.9
	thorpej-altq-separation:1.9.0.52
	thorpej-altq-separation-base:1.9
	netbsd-10-0-RC1:1.9
	netbsd-10:1.9.0.50
	netbsd-10-base:1.9
	bouyer-sunxi-drm:1.9.0.48
	bouyer-sunxi-drm-base:1.9
	netbsd-9-3-RELEASE:1.9
	thorpej-i2c-spi-conf2:1.9.0.46
	thorpej-i2c-spi-conf2-base:1.9
	thorpej-futex2:1.9.0.44
	thorpej-futex2-base:1.9
	thorpej-cfargs2:1.9.0.42
	thorpej-cfargs2-base:1.9
	cjep_sun2x-base1:1.9
	cjep_sun2x:1.9.0.40
	cjep_sun2x-base:1.9
	cjep_staticlib_x-base1:1.9
	netbsd-9-2-RELEASE:1.9
	cjep_staticlib_x:1.9.0.38
	cjep_staticlib_x-base:1.9
	thorpej-i2c-spi-conf:1.9.0.36
	thorpej-i2c-spi-conf-base:1.9
	thorpej-cfargs:1.9.0.34
	thorpej-cfargs-base:1.9
	thorpej-futex:1.9.0.32
	thorpej-futex-base:1.9
	netbsd-9-1-RELEASE:1.9
	bouyer-xenpvh-base2:1.9
	phil-wifi-20200421:1.9
	bouyer-xenpvh-base1:1.9
	phil-wifi-20200411:1.9
	bouyer-xenpvh:1.9.0.30
	bouyer-xenpvh-base:1.9
	is-mlppp:1.9.0.28
	is-mlppp-base:1.9
	phil-wifi-20200406:1.9
	netbsd-8-2-RELEASE:1.9
	ad-namecache-base3:1.9
	netbsd-9-0-RELEASE:1.9
	netbsd-9-0-RC2:1.9
	ad-namecache-base2:1.9
	ad-namecache-base1:1.9
	ad-namecache:1.9.0.26
	ad-namecache-base:1.9
	netbsd-9-0-RC1:1.9
	phil-wifi-20191119:1.9
	netbsd-9:1.9.0.24
	netbsd-9-base:1.9
	phil-wifi-20190609:1.9
	netbsd-8-1-RELEASE:1.9
	netbsd-8-1-RC1:1.9
	isaki-audio2:1.9.0.22
	isaki-audio2-base:1.9
	pgoyette-compat-merge-20190127:1.9
	pgoyette-compat-20190127:1.9
	pgoyette-compat-20190118:1.9
	pgoyette-compat-1226:1.9
	pgoyette-compat-1126:1.9
	pgoyette-compat-1020:1.9
	pgoyette-compat-0930:1.9
	pgoyette-compat-0906:1.9
	pgoyette-compat-0728:1.9
	netbsd-8-0-RELEASE:1.9
	phil-wifi:1.9.0.20
	phil-wifi-base:1.9
	pgoyette-compat-0625:1.9
	netbsd-8-0-RC2:1.9
	pgoyette-compat-0521:1.9
	pgoyette-compat-0502:1.9
	pgoyette-compat-0422:1.9
	netbsd-8-0-RC1:1.9
	pgoyette-compat-0415:1.9
	pgoyette-compat-0407:1.9
	pgoyette-compat-0330:1.9
	pgoyette-compat-0322:1.9
	pgoyette-compat-0315:1.9
	pgoyette-compat:1.9.0.18
	pgoyette-compat-base:1.9
	tls-maxphys:1.9.0.16
	tls-maxphys-base-20171202:1.9
	matt-nb8-mediatek:1.9.0.14
	matt-nb8-mediatek-base:1.9
	nick-nhusb-base-20170825:1.9
	perseant-stdc-iso10646:1.9.0.12
	perseant-stdc-iso10646-base:1.9
	netbsd-8:1.9.0.10
	netbsd-8-base:1.9
	prg-localcount2-base3:1.9
	prg-localcount2-base2:1.9
	prg-localcount2-base1:1.9
	prg-localcount2:1.9.0.8
	prg-localcount2-base:1.9
	pgoyette-localcount-20170426:1.9
	bouyer-socketcan-base1:1.9
	jdolecek-ncq:1.9.0.6
	jdolecek-ncq-base:1.9
	pgoyette-localcount-20170320:1.9
	nick-nhusb-base-20170204:1.9
	bouyer-socketcan:1.9.0.4
	bouyer-socketcan-base:1.9
	pgoyette-localcount-20170107:1.9
	nick-nhusb-base-20161204:1.9
	pgoyette-localcount-20161104:1.9
	nick-nhusb-base-20161004:1.9
	localcount-20160914:1.9
	pgoyette-localcount-20160806:1.9
	pgoyette-localcount-20160726:1.9
	pgoyette-localcount:1.9.0.2
	pgoyette-localcount-base:1.9
	nick-nhusb-base-20160907:1.9
	nick-nhusb-base-20160529:1.9
	nick-nhusb-base-20160422:1.9
	nick-nhusb-base-20160319:1.9
	nick-nhusb-base-20151226:1.2
	nick-nhusb-base-20150921:1.2
	nick-nhusb-base-20150606:1.1
	nick-nhusb:1.1.0.2
	nick-nhusb-base-20150406:1.1;
locks; strict;
comment	@# @;


1.9
date	2016.01.25.21.56.27;	author christos;	state Exp;
branches
	1.9.16.1;
next	1.8;
commitid	WrKIl0WOwXPZsmSy;

1.8
date	2016.01.25.15.37.21;	author christos;	state Exp;
branches;
next	1.7;
commitid	cMLb9rGGFB21nkSy;

1.7
date	2016.01.25.13.31.48;	author christos;	state Exp;
branches;
next	1.6;
commitid	pm3lt53T9wNSFjSy;

1.6
date	2016.01.25.12.44.52;	author martin;	state Exp;
branches;
next	1.5;
commitid	HrDr9YDvtJGOpjSy;

1.5
date	2016.01.24.16.44.16;	author christos;	state Exp;
branches;
next	1.4;
commitid	VKaDCxGS4UhULcSy;

1.4
date	2016.01.24.01.12.06;	author christos;	state Exp;
branches;
next	1.3;
commitid	mlXof9C4qr09C7Sy;

1.3
date	2016.01.24.01.01.43;	author christos;	state Exp;
branches;
next	1.2;
commitid	aEgAXOQ6RTZwy7Sy;

1.2
date	2015.09.10.19.57.48;	author riz;	state Exp;
branches;
next	1.1;
commitid	aNIDorVYRuhhdKAy;

1.1
date	2015.03.08.04.15.22;	author christos;	state Exp;
branches
	1.1.2.1;
next	;
commitid	Rj3B4V6mrgnHYKcy;

1.9.16.1
date	2016.01.25.21.56.27;	author jdolecek;	state dead;
branches;
next	1.9.16.2;
commitid	XcIYRZTAh1LmerhA;

1.9.16.2
date	2017.12.03.11.38.52;	author jdolecek;	state Exp;
branches;
next	;
commitid	XcIYRZTAh1LmerhA;

1.1.2.1
date	2015.03.08.04.15.22;	author skrll;	state dead;
branches;
next	1.1.2.2;
commitid	pz01Zhy7RP6iGxgy;

1.1.2.2
date	2015.04.06.15.18.21;	author skrll;	state Exp;
branches;
next	1.1.2.3;
commitid	pz01Zhy7RP6iGxgy;

1.1.2.3
date	2015.09.22.12.06.09;	author skrll;	state Exp;
branches;
next	1.1.2.4;
commitid	CpNWKp3ozVNTafCy;

1.1.2.4
date	2016.03.19.11.30.32;	author skrll;	state Exp;
branches;
next	;
commitid	2PHKtPSg1vDV9fZy;


desc
@@


1.9
log
@earm (iyonix and zaurus) don't have cpu_counter.h
@
text
@#	$NetBSD: Makefile,v 1.8 2016/01/25 15:37:21 christos Exp $

.include "../../Makefile.inc"

.PATH: ${NETBSDSRCDIR}/external/cddl/osnet/dev/lockstat

KMOD=		dtrace_lockstat
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:Mearmv*)
ARMV:= ${MACHINE_ARCH:S/earmv//:S/eb//:S/hf//}
.elif !empty(MACHINE_ARCH:Marmv*)
ARMV:= ${MACHINE_ARCH:S/armv//:S/eb//:S/hf//}
.else
ARMV:= 0
.endif

.if ${ARMV} > 4
CPPFLAGS+=	-D__HAVE_CPU_COUNTER
.endif

.include <bsd.kmodule.mk>
@


1.9.16.1
log
@file Makefile was added on branch tls-maxphys on 2017-12-03 11:38:52 +0000
@
text
@d1 26
@


1.9.16.2
log
@update from HEAD
@
text
@a0 26
#	$NetBSD$

.include "../../Makefile.inc"

.PATH: ${NETBSDSRCDIR}/external/cddl/osnet/dev/lockstat

KMOD=		dtrace_lockstat
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:Mearmv*)
ARMV:= ${MACHINE_ARCH:S/earmv//:S/eb//:S/hf//}
.elif !empty(MACHINE_ARCH:Marmv*)
ARMV:= ${MACHINE_ARCH:S/armv//:S/eb//:S/hf//}
.else
ARMV:= 0
.endif

.if ${ARMV} > 4
CPPFLAGS+=	-D__HAVE_CPU_COUNTER
.endif

.include <bsd.kmodule.mk>
@


1.8
log
@spell empty.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2016/01/25 13:31:48 christos Exp $
a17 2
.elif !empty(MACHINE_ARCH:Mearm*)
ARMV:= 5
@


1.7
log
@Handle also the earm{ev,hf}...
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2016/01/25 12:44:52 martin Exp $
d18 1
a18 1
.elif !empry(MACHINE_ARCH:Mearm*)
@


1.6
log
@Map "earm" to armv5
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2016/01/24 16:44:16 christos Exp $
d14 1
a14 3
.if ${MACHINE_ARCH} == "earm"
ARMV:= 5
.elif !empty(MACHINE_ARCH:Mearm*)
d16 1
a16 1
.elif !empty(MACHINE_ARCH:Marm*)
d18 2
@


1.5
log
@Remove hf and eb. Rin Okuyama
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2016/01/24 01:12:06 christos Exp $
d14 3
a16 1
.if !empty(MACHINE_ARCH:Mearm*)
@


1.4
log
@Grr. arm is different.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2015/09/10 19:57:48 riz Exp $
d15 1
a15 1
ARMV:= ${MACHINE_ARCH:S/earmv//}
d17 1
a17 1
ARMV:= ${MACHINE_ARCH:S/armv//}
@


1.3
log
@Instead of hard-coding who has cpu counters why don't you look for them?
@
text
@d13 10
a22 1
.if exists(${DESTDIR}/usr/include/machine/cpu_counter.h)
@


1.2
log
@Evil hack to ensure dtrace lockstat module builds on arm.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2015/03/08 04:15:22 christos Exp $
d13 1
a13 1
.if (!empty(MACHINE_ARCH:Mearm*) || !empty(MACHINE_ARCH:Marm*))
@


1.1
log
@non working glue.
@
text
@d1 1
a1 1
#	$NetBSD$
d13 3
@


1.1.2.1
log
@file Makefile was added on branch nick-nhusb on 2015-04-06 15:18:21 +0000
@
text
@d1 14
@


1.1.2.2
log
@Sync with HEAD
@
text
@a0 14
#	$NetBSD: Makefile,v 1.1 2015/03/08 04:15:22 christos Exp $

.include "../../Makefile.inc"

.PATH: ${NETBSDSRCDIR}/external/cddl/osnet/dev/lockstat

KMOD=		dtrace_lockstat
SRCS=		lockstat.c

CPPFLAGS+=	-I${NETBSDSRCDIR}/external/cddl/osnet/sys
CPPFLAGS+=	-I${NETBSDSRCDIR}/external/cddl/osnet/dist/uts/common
CPPFLAGS+=	-DKDTRACE_HOOKS

.include <bsd.kmodule.mk>
@


1.1.2.3
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1.2.2 2015/04/06 15:18:21 skrll Exp $
a12 3
.if (!empty(MACHINE_ARCH:Mearm*) || !empty(MACHINE_ARCH:Marm*))
CPPFLAGS+=	-D__HAVE_CPU_COUNTER
.endif
@


1.1.2.4
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1.2.3 2015/09/22 12:06:09 skrll Exp $
d13 1
a13 10

.if !empty(MACHINE_ARCH:Mearmv*)
ARMV:= ${MACHINE_ARCH:S/earmv//:S/eb//:S/hf//}
.elif !empty(MACHINE_ARCH:Marmv*)
ARMV:= ${MACHINE_ARCH:S/armv//:S/eb//:S/hf//}
.else
ARMV:= 0
.endif

.if ${ARMV} > 4
@


