blob: 335ab48bb20d6dc231d3a958f0bfd7145e1de999 [file] [log] [blame]
Brad Bishopd7bf8c12018-02-25 22:55:05 -05001SUMMARY = "System-Wide Profiler"
2DESCRIPTION = "OProfile is a system-wide profiler for Linux systems, capable \
3of profiling all running code at low overhead."
4HOMEPAGE = "http://oprofile.sourceforge.net/news/"
5BUGTRACKER = "http://sourceforge.net/tracker/?group_id=16191&atid=116191"
6
Andrew Geissler9aee5002022-03-30 16:27:02 +00007LICENSE = "LGPL-2.1-or-later & GPL-2.0-only"
Brad Bishopd7bf8c12018-02-25 22:55:05 -05008LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
9 file://libopagent/opagent.h;beginline=5;endline=26;md5=4f16f72c7a493d8a4704aa18d03d15c6 \
10 "
11SECTION = "devel"
12
13DEPENDS = "popt binutils"
Patrick Williams213cb262021-08-07 19:21:33 -050014DEPENDS:append:powerpc64 = " libpfm4"
15DEPENDS:append:powerpc64le = " libpfm4"
Brad Bishopd7bf8c12018-02-25 22:55:05 -050016
Patrick Williams213cb262021-08-07 19:21:33 -050017COMPATIBLE_HOST:riscv64 = "null"
18COMPATIBLE_HOST:riscv32 = "null"
Brad Bishopd7bf8c12018-02-25 22:55:05 -050019
20SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz \
21 file://acinclude.m4 \
Brad Bishopd7bf8c12018-02-25 22:55:05 -050022 file://run-ptest \
Andrew Geissler32b11992021-03-31 13:37:05 -050023 file://0001-Fix-build-with-musl.patch \
24 file://0002-Fix-configure-when-bin-sh-is-not-bash.patch \
25 file://0003-Define-the-C-preprocessor-variable-to-improve-reprod.patch \
26 file://0004-Use-BUILD_DATE-to-improve-reproducibility.patch \
27 file://0005-Add-rmb-definition-for-NIOS2-architecture.patch \
28 file://0006-replace-sym_iterator-0-with-sym_iterator.patch \
29 file://0007-oprofile-doesn-t-want-GNU-levels-of-automake-strictn.patch \
30 file://0008-include-linux-limits.h-for-MAX_INPUT.patch \
31 file://0009-Prevent-running-check-tests-on-host-if-cross-compili.patch \
32 file://0010-oprofile-Determine-the-root-home-directory-dynamical.patch \
Andrew Geissler87f5cff2022-09-30 13:13:31 -050033 file://0001-configure-Include-unistd.h-for-getpid-API.patch \
Patrick Williams864cc432023-02-09 14:54:44 -060034 file://0001-Replace-std-bind2nd-with-generic-lambda.patch \
Brad Bishopd7bf8c12018-02-25 22:55:05 -050035"
Andrew Geissler32b11992021-03-31 13:37:05 -050036SRC_URI[sha256sum] = "7ba06f99d7c188389d20d1d5e53ee690c7733f87aa9af62bd664fa0ca235a412"
37
Brad Bishopd7bf8c12018-02-25 22:55:05 -050038UPSTREAM_CHECK_REGEX = "oprofile-(?P<pver>\d+(\.\d+)+)/"
39UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/oprofile/files/oprofile/"
40
Brad Bishopd7bf8c12018-02-25 22:55:05 -050041inherit autotools pkgconfig ptest
42
43EXTRA_OECONF = "--with-kernel=${STAGING_DIR_HOST}${prefix} --without-x ac_cv_prog_XSLTPROC="
44do_configure () {
45 cp ${WORKDIR}/acinclude.m4 ${S}/
46 autotools_do_configure
47}
48
49EXTRA_OEMAKE = "SRCDIR=${PTEST_PATH}/libutil++/tests"
50do_compile_ptest() {
51 oe_runmake check
52}
53
54do_install_ptest() {
55 subdirs="libdb/tests libutil++/tests libregex/tests libutil/tests libop/tests libdb/tests "
56 for tooltest in ${subdirs}
57 do
58 find ${tooltest} -perm /u=x -type f| cpio -pvdu ${D}${PTEST_PATH}
59 done
60
61 # needed by some libop tests
62 cp -r events ${D}${PTEST_PATH}
63
64 # needed by libregex regex_test
65 cp libregex/stl.pat ${D}${PTEST_PATH}/libregex
66 cp libregex/tests/mangled-name ${D}${PTEST_PATH}/libregex/tests
67
68 # needed by litutil++ file_manip_tests
69 cp ${S}/libutil++/tests/file_manip_tests.cpp \
70 libutil++/tests/file_manip_tests.o ${D}${PTEST_PATH}/libutil++/tests
71}
Andrew Geissler32b11992021-03-31 13:37:05 -050072
Patrick Williams213cb262021-08-07 19:21:33 -050073RDEPENDS:${PN} = "binutils-symlinks"
Andrew Geissler32b11992021-03-31 13:37:05 -050074
Patrick Williams213cb262021-08-07 19:21:33 -050075FILES:${PN} = "${bindir} ${libdir}/${BPN}/lib*${SOLIBS} ${datadir}/${BPN}"
76FILES:${PN}-dev += "${libdir}/${BPN}/lib*${SOLIBSDEV} ${libdir}/${BPN}/lib*.la"
77FILES:${PN}-staticdev += "${libdir}/${BPN}/lib*.a"