Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 1 | SUMMARY = "System-Wide Profiler" |
| 2 | DESCRIPTION = "OProfile is a system-wide profiler for Linux systems, capable \ |
| 3 | of profiling all running code at low overhead." |
| 4 | HOMEPAGE = "http://oprofile.sourceforge.net/news/" |
| 5 | BUGTRACKER = "http://sourceforge.net/tracker/?group_id=16191&atid=116191" |
| 6 | |
| 7 | LICENSE = "LGPLv2.1+ & GPLv2" |
| 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ |
| 9 | file://libopagent/opagent.h;beginline=5;endline=26;md5=4f16f72c7a493d8a4704aa18d03d15c6 \ |
| 10 | " |
| 11 | SECTION = "devel" |
| 12 | |
| 13 | DEPENDS = "popt binutils" |
Andrew Geissler | 32b1199 | 2021-03-31 13:37:05 -0500 | [diff] [blame] | 14 | DEPENDS_append_powerpc64 = " libpfm4" |
| 15 | DEPENDS_append_powerpc64le = " libpfm4" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 16 | |
Andrew Geissler | 32b1199 | 2021-03-31 13:37:05 -0500 | [diff] [blame] | 17 | COMPATIBLE_HOST_riscv64 = "null" |
| 18 | COMPATIBLE_HOST_riscv32 = "null" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 19 | |
| 20 | SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz \ |
| 21 | file://acinclude.m4 \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 22 | file://run-ptest \ |
Andrew Geissler | 32b1199 | 2021-03-31 13:37:05 -0500 | [diff] [blame] | 23 | 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 Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 33 | " |
Andrew Geissler | 32b1199 | 2021-03-31 13:37:05 -0500 | [diff] [blame] | 34 | SRC_URI[sha256sum] = "7ba06f99d7c188389d20d1d5e53ee690c7733f87aa9af62bd664fa0ca235a412" |
| 35 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 36 | UPSTREAM_CHECK_REGEX = "oprofile-(?P<pver>\d+(\.\d+)+)/" |
| 37 | UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/oprofile/files/oprofile/" |
| 38 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 39 | inherit autotools pkgconfig ptest |
| 40 | |
| 41 | EXTRA_OECONF = "--with-kernel=${STAGING_DIR_HOST}${prefix} --without-x ac_cv_prog_XSLTPROC=" |
| 42 | do_configure () { |
| 43 | cp ${WORKDIR}/acinclude.m4 ${S}/ |
| 44 | autotools_do_configure |
| 45 | } |
| 46 | |
| 47 | EXTRA_OEMAKE = "SRCDIR=${PTEST_PATH}/libutil++/tests" |
| 48 | do_compile_ptest() { |
| 49 | oe_runmake check |
| 50 | } |
| 51 | |
| 52 | do_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 Geissler | 32b1199 | 2021-03-31 13:37:05 -0500 | [diff] [blame] | 70 | |
| 71 | RDEPENDS_${PN} = "binutils-symlinks" |
| 72 | |
| 73 | FILES_${PN} = "${bindir} ${libdir}/${BPN}/lib*${SOLIBS} ${datadir}/${BPN}" |
| 74 | FILES_${PN}-dev += "${libdir}/${BPN}/lib*${SOLIBSDEV} ${libdir}/${BPN}/lib*.la" |
| 75 | FILES_${PN}-staticdev += "${libdir}/${BPN}/lib*.a" |