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" |
| 14 | RDEPENDS_${PN} = "binutils-symlinks" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 15 | |
| 16 | FILES_${PN} = "${bindir} ${libdir}/${BPN}/lib*${SOLIBS} ${datadir}/${BPN}" |
| 17 | FILES_${PN}-dev += "${libdir}/${BPN}/lib*${SOLIBSDEV} ${libdir}/${BPN}/lib*.la" |
| 18 | FILES_${PN}-staticdev += "${libdir}/${BPN}/lib*.a" |
| 19 | |
| 20 | SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz \ |
| 21 | file://acinclude.m4 \ |
| 22 | file://automake-foreign.patch \ |
| 23 | file://oprofile-cross-compile-tests.patch \ |
| 24 | file://run-ptest \ |
| 25 | file://root-home-dir.patch \ |
| 26 | file://0001-Add-rmb-definition-for-NIOS2-architecture.patch \ |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 27 | file://0001-replace-sym_iterator-0-with-sym_iterator.patch \ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 28 | file://0001-Use-new-bfd-APIs-from-2.34.patch \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 29 | " |
| 30 | UPSTREAM_CHECK_REGEX = "oprofile-(?P<pver>\d+(\.\d+)+)/" |
| 31 | UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/oprofile/files/oprofile/" |
| 32 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 33 | SRC_URI_append_libc-musl = " file://musl.patch \ |
| 34 | " |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 35 | |
| 36 | inherit autotools pkgconfig ptest |
| 37 | |
| 38 | EXTRA_OECONF = "--with-kernel=${STAGING_DIR_HOST}${prefix} --without-x ac_cv_prog_XSLTPROC=" |
| 39 | do_configure () { |
| 40 | cp ${WORKDIR}/acinclude.m4 ${S}/ |
| 41 | autotools_do_configure |
| 42 | } |
| 43 | |
| 44 | EXTRA_OEMAKE = "SRCDIR=${PTEST_PATH}/libutil++/tests" |
| 45 | do_compile_ptest() { |
| 46 | oe_runmake check |
| 47 | } |
| 48 | |
| 49 | do_install_ptest() { |
| 50 | subdirs="libdb/tests libutil++/tests libregex/tests libutil/tests libop/tests libdb/tests " |
| 51 | for tooltest in ${subdirs} |
| 52 | do |
| 53 | find ${tooltest} -perm /u=x -type f| cpio -pvdu ${D}${PTEST_PATH} |
| 54 | done |
| 55 | |
| 56 | # needed by some libop tests |
| 57 | cp -r events ${D}${PTEST_PATH} |
| 58 | |
| 59 | # needed by libregex regex_test |
| 60 | cp libregex/stl.pat ${D}${PTEST_PATH}/libregex |
| 61 | cp libregex/tests/mangled-name ${D}${PTEST_PATH}/libregex/tests |
| 62 | |
| 63 | # needed by litutil++ file_manip_tests |
| 64 | cp ${S}/libutil++/tests/file_manip_tests.cpp \ |
| 65 | libutil++/tests/file_manip_tests.o ${D}${PTEST_PATH}/libutil++/tests |
| 66 | } |