From 3aad8ca854445317a13bc9c63d50dadbf8bf0bea Mon Sep 17 00:00:00 2001 From: Ian Lepore Date: Thu, 6 Jun 2019 15:21:36 +0000 Subject: [PATCH] For armv6 and armv7, build hwpmc_armv7.c as well as the base hwpmc_arm.c. Submitted by: Arnaud YSMAL --- sys/modules/hwpmc/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/modules/hwpmc/Makefile b/sys/modules/hwpmc/Makefile index 2be1a58a255..8e676c9688a 100644 --- a/sys/modules/hwpmc/Makefile +++ b/sys/modules/hwpmc/Makefile @@ -22,6 +22,10 @@ SRCS+= hwpmc_x86.c hwpmc_uncore.c SRCS+= hwpmc_arm.c .endif +.if ${MACHINE_ARCH:Marmv[67]*} != "" +SRCS+= hwpmc_armv7.c +.endif + .if ${MACHINE_CPUARCH} == "i386" SRCS+= hwpmc_amd.c hwpmc_core.c hwpmc_intel.c SRCS+= hwpmc_tsc.c hwpmc_x86.c hwpmc_uncore.c