From 3a3ab509160d4097af2939aac05a109b253c34eb Mon Sep 17 00:00:00 2001 From: Ian Lepore Date: Wed, 12 Jun 2019 16:05:20 +0000 Subject: [PATCH] Don't attempt to include hwpmc support for armv6, we're missing some of the necessary support functions in cpu-v6.h, and it may be that the only armv6 platform we support (RPi, the bcm2835 SOC) is incapable of supporting hwpmc. Reported by: dim@ --- sys/modules/hwpmc/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/modules/hwpmc/Makefile b/sys/modules/hwpmc/Makefile index 8e676c9688ac..23bd648be229 100644 --- a/sys/modules/hwpmc/Makefile +++ b/sys/modules/hwpmc/Makefile @@ -22,7 +22,7 @@ SRCS+= hwpmc_x86.c hwpmc_uncore.c SRCS+= hwpmc_arm.c .endif -.if ${MACHINE_ARCH:Marmv[67]*} != "" +.if ${MACHINE_ARCH} == "armv7" SRCS+= hwpmc_armv7.c .endif