blob: 4baed6214502ff43fdbbe3dd44f85770eeef099a [file] [log] [blame]
Brad Bishope42b3e32020-01-15 22:08:42 -05001SUMMARY = "Monitoring tools exploiting the performance monitoring events"
2DESCRIPTION = "This package provides a library, called libpfm4 which is used to develop \
3monitoring tools exploiting the performance monitoring events such as those \
4provided by the Performance Monitoring Unit (PMU) of modern processors."
5HOMEPAGE = "http://perfmon2.sourceforge.net/"
6BUGTRACKER = "http://sourceforge.net/tracker/?group_id=144822&atid=759953&source=navbar"
7
8LICENSE = "MIT"
9LIC_FILES_CHKSUM = "file://COPYING;md5=0de488f3bd4424e308e2e399cb99c788"
10
11SECTION = "devel"
12
Andrew Geissler69721092021-07-23 12:57:00 -040013COMPATIBLE_HOST = "powerpc64|aarch64"
Brad Bishope42b3e32020-01-15 22:08:42 -050014
15SRC_URI = "${SOURCEFORGE_MIRROR}/perfmon2/${BPN}/libpfm-${PV}.tar.gz \
16 file://0001-Include-poll.h-instead-of-sys-poll.h.patch \
Andrew Geissler69721092021-07-23 12:57:00 -040017 file://0002-perf_examples-Remove-unused-sum-variable.patch \
18 "
Andrew Geissler87f5cff2022-09-30 13:13:31 -050019SRC_URI[sha256sum] = "4b0c1f53f39a61525b69bebf532c68040c1b984d7544a8ae0844b13cd91e1ee4"
Brad Bishope42b3e32020-01-15 22:08:42 -050020
21UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/perfmon2/files/libpfm4/"
22
Patrick Williams03907ee2022-05-01 06:28:52 -050023EXTRA_OEMAKE = "DESTDIR=\"${D}\" PREFIX=\"${prefix}\" LIBDIR=\"${libdir}\" LDCONFIG=\"true\" DBG='-g -Wall -Wextra -Wno-unused-parameter'"
Patrick Williams213cb262021-08-07 19:21:33 -050024EXTRA_OEMAKE:append:powerpc = " ARCH=\"powerpc\""
25EXTRA_OEMAKE:append:powerpc64 = " ARCH=\"powerpc\" BITMODE=\"64\""
26EXTRA_OEMAKE:append:powerpc64le = " ARCH=\"powerpc\" BITMODE=\"64\""
27EXTRA_OEMAKE:append:aarch64 = " ARCH=\"arm64\""
Brad Bishope42b3e32020-01-15 22:08:42 -050028
29S = "${WORKDIR}/libpfm-${PV}"
30
31do_install () {
32 oe_runmake install
33}