aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitchell Horne <mhorne@FreeBSD.org>2021-05-31 20:24:15 +0000
committerMitchell Horne <mhorne@FreeBSD.org>2021-07-29 15:01:10 +0000
commit6911f39887662f95a2a20c521ce5b5a8d048f687 (patch)
tree9ee6f14d88284c22349196091c974b20c05a3061
parent440e5ecbe13d65fb2d4f01290ccb25217f8bc0b3 (diff)
downloadsrc-6911f39887662f95a2a20c521ce5b5a8d048f687.tar.gz
src-6911f39887662f95a2a20c521ce5b5a8d048f687.zip
libpmc: limit pmu-events to 64-bit powerpc
Although currently unused, there are only pmu event definitions for POWER8 and POWER9. There is no sense in building these on 32-bit platforms. Sponsored by: The FreeBSD Foundation (cherry picked from commit 507d68984a010dab0c3ecc5477c36526c3a7fa48)
-rw-r--r--lib/libpmc/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libpmc/Makefile b/lib/libpmc/Makefile
index da3f8a72d26b..285b6c539ece 100644
--- a/lib/libpmc/Makefile
+++ b/lib/libpmc/Makefile
@@ -12,7 +12,7 @@ LDADD+= -lc++
EVENT_ARCH="arm64"
.elif ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386"
EVENT_ARCH="x86"
-.elif ${MACHINE_ARCH} == "powerpc"
+.elif ${MACHINE_CPUARCH} == "powerpc" && ${MACHINE_ARCH:Mpowerpc64*} != ""
EVENT_ARCH="powerpc"
.else
# This will generate an empty events table