svn commit: r348741 - head/sys/modules/hwpmc

Ian Lepore ian at FreeBSD.org
Thu Jun 6 15:21:38 UTC 2019


Author: ian
Date: Thu Jun  6 15:21:36 2019
New Revision: 348741
URL: https://svnweb.freebsd.org/changeset/base/348741

Log:
  For armv6 and armv7, build hwpmc_armv7.c as well as the base hwpmc_arm.c.
  
  Submitted by:	Arnaud YSMAL <arnaud.ysmal at stormshield.eu>

Modified:
  head/sys/modules/hwpmc/Makefile

Modified: head/sys/modules/hwpmc/Makefile
==============================================================================
--- head/sys/modules/hwpmc/Makefile	Thu Jun  6 15:18:23 2019	(r348740)
+++ head/sys/modules/hwpmc/Makefile	Thu Jun  6 15:21:36 2019	(r348741)
@@ -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


More information about the svn-src-all mailing list