blob: ee37b6c6b77886421eff98a79e5bf808ff616ee4 [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
7LICENSE = "LGPLv2.1+ & GPLv2"
8LIC_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 \
Brad Bishopd7bf8c12018-02-25 22:55:05 -050033"
Andrew Geissler32b11992021-03-31 13:37:05 -050034SRC_URI[sha256sum] = "7ba06f99d7c188389d20d1d5e53ee690c7733f87aa9af62bd664fa0ca235a412"
35
Brad Bishopd7bf8c12018-02-25 22:55:05 -050036UPSTREAM_CHECK_REGEX = "oprofile-(?P<pver>\d+(\.\d+)+)/"
37UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/oprofile/files/oprofile/"
38
Brad Bishopd7bf8c12018-02-25 22:55:05 -050039inherit autotools pkgconfig ptest
40
41EXTRA_OECONF = "--with-kernel=${STAGING_DIR_HOST}${prefix} --without-x ac_cv_prog_XSLTPROC="
42do_configure () {
43 cp ${WORKDIR}/acinclude.m4 ${S}/
44 autotools_do_configure
45}
46
47EXTRA_OEMAKE = "SRCDIR=${PTEST_PATH}/libutil++/tests"
48do_compile_ptest() {
49 oe_runmake check
50}
51
52do_install_ptest() {
53 subdirs="libdb/tests libutil++/tests libregex/tests libutil/tests libop/tests libdb/tests "
54 for tooltest in ${subdirs}
55 do
56 find ${tooltest} -perm /u=x -type f| cpio -pvdu ${D}${PTEST_PATH}
57 done
58
59 # needed by some libop tests
60 cp -r events ${D}${PTEST_PATH}
61
62 # needed by libregex regex_test
63 cp libregex/stl.pat ${D}${PTEST_PATH}/libregex
64 cp libregex/tests/mangled-name ${D}${PTEST_PATH}/libregex/tests
65
66 # needed by litutil++ file_manip_tests
67 cp ${S}/libutil++/tests/file_manip_tests.cpp \
68 libutil++/tests/file_manip_tests.o ${D}${PTEST_PATH}/libutil++/tests
69}
Andrew Geissler32b11992021-03-31 13:37:05 -050070
Patrick Williams213cb262021-08-07 19:21:33 -050071RDEPENDS:${PN} = "binutils-symlinks"
Andrew Geissler32b11992021-03-31 13:37:05 -050072
Patrick Williams213cb262021-08-07 19:21:33 -050073FILES:${PN} = "${bindir} ${libdir}/${BPN}/lib*${SOLIBS} ${datadir}/${BPN}"
74FILES:${PN}-dev += "${libdir}/${BPN}/lib*${SOLIBSDEV} ${libdir}/${BPN}/lib*.la"
75FILES:${PN}-staticdev += "${libdir}/${BPN}/lib*.a"