aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMitchell Horne <mhorne@FreeBSD.org>2021-05-31 14:24:04 +0000
committerMitchell Horne <mhorne@FreeBSD.org>2021-05-31 20:39:05 +0000
commit689c7e7975cdee38ca6fd60ad3372d55c43c948c (patch)
tree9e7027d65b024b27f14732304d4f105e99f0a111 /lib
parent0c915023dbb7000cd30bb768eb84f6dc757adcc5 (diff)
downloadsrc-689c7e7975cdee38ca6fd60ad3372d55c43c948c.tar.gz
src-689c7e7975cdee38ca6fd60ad3372d55c43c948c.zip
libpmc: always generate libpmc_events.c
The jevents build tool will create an empty table if it doesn't find any events, so we can remove the extra $MACHINE_CPUARCH checks. Reviewed by: gnn, ray, emaste MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D30531
Diffstat (limited to 'lib')
-rw-r--r--lib/libpmc/Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/libpmc/Makefile b/lib/libpmc/Makefile
index 42aa14e58471..1006b6f93469 100644
--- a/lib/libpmc/Makefile
+++ b/lib/libpmc/Makefile
@@ -8,15 +8,15 @@ INCS= pmc.h pmclog.h pmcformat.h
CFLAGS+= -I${SRCTOP}/${RELDIR:H}/libpmcstat
LDADD+= -lc++
-.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_ARCH} == "amd64" || \
- ${MACHINE_ARCH} == "i386"
-
.if ${MACHINE_CPUARCH} == "aarch64"
EVENT_ARCH="arm64"
.elif ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
EVENT_ARCH="x86"
.elif ${MACHINE_ARCH} == "powerpc"
EVENT_ARCH="powerpc"
+.else
+# This will generate an empty events table
+EVENT_ARCH="none"
.endif
.if ${MK_DIRDEPS_BUILD} == "yes"
@@ -40,7 +40,6 @@ libpmc_events.c: ${JEVENTS} .META
fi
CLEANFILES+= libpmc_events.c libpmc_events.c.tmp
SRCS+= libpmc_events.c
-.endif
WARNS?= 3