]> xenbits.xensource.com Git - people/liuw/freebsd.git/commitdiff
Add aarch64 files to the hwpmc(4) module build
authoremaste <emaste@FreeBSD.org>
Fri, 23 Oct 2015 21:09:28 +0000 (21:09 +0000)
committeremaste <emaste@FreeBSD.org>
Fri, 23 Oct 2015 21:09:28 +0000 (21:09 +0000)
This was probably missed because FreeBSD/arm64 did not yet support
modules when aarch64 support was added to hwpmc(4).

Submitted by: andrew

sys/modules/hwpmc/Makefile

index cfae7b6a4c7b76267d5ce3f223c6594ae0be1b8f..5e6ea309c8e26c0a8013590b6c42de09e183788a 100644 (file)
@@ -8,6 +8,10 @@ KMOD=  hwpmc
 
 SRCS=  hwpmc_mod.c hwpmc_logging.c hwpmc_soft.c vnode_if.h
 
+.if ${MACHINE_CPUARCH} == "aarch64"
+SRCS+=  hwpmc_arm64.c hwpmc_arm64_md.c
+.endif
+
 .if ${MACHINE_CPUARCH} == "amd64"
 SRCS+= hwpmc_amd.c hwpmc_core.c hwpmc_intel.c hwpmc_piv.c hwpmc_tsc.c
 SRCS+= hwpmc_x86.c hwpmc_uncore.c