Patrick Williams | c124f4f | 2015-09-15 14:41:29 -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" |
| 15 | RRECOMMENDS_${PN} = "kernel-vmlinux" |
| 16 | |
| 17 | FILES_${PN} = "${bindir} ${libdir}/${BPN}/lib*${SOLIBS} ${datadir}/${BPN}" |
| 18 | FILES_${PN}-dev += "${libdir}/${BPN}/lib*${SOLIBSDEV} ${libdir}/${BPN}/lib*.la" |
| 19 | FILES_${PN}-staticdev += "${libdir}/${BPN}/lib*.a" |
| 20 | |
| 21 | SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz \ |
| 22 | file://acinclude.m4 \ |
| 23 | file://automake-foreign.patch \ |
| 24 | file://oprofile-cross-compile-tests.patch \ |
| 25 | file://run-ptest \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 26 | file://root-home-dir.patch \ |
| 27 | file://0001-Add-rmb-definition-for-NIOS2-architecture.patch" |
| 28 | |
| 29 | SRC_URI_append_libc-musl = " file://musl.patch" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 30 | |
| 31 | inherit autotools pkgconfig ptest |
| 32 | |
| 33 | EXTRA_OECONF = "--with-kernel=${STAGING_DIR_HOST}${prefix} --without-x ac_cv_prog_XSLTPROC=" |
| 34 | do_configure () { |
| 35 | cp ${WORKDIR}/acinclude.m4 ${S}/ |
| 36 | autotools_do_configure |
| 37 | } |
| 38 | |
| 39 | EXTRA_OEMAKE = "SRCDIR=${PTEST_PATH}/libutil++/tests" |
| 40 | do_compile_ptest() { |
| 41 | oe_runmake check |
| 42 | } |
| 43 | |
| 44 | do_install_ptest() { |
| 45 | subdirs="libdb/tests libutil++/tests libregex/tests libutil/tests libop/tests libdb/tests " |
| 46 | for tooltest in ${subdirs} |
| 47 | do |
| 48 | find ${tooltest} -perm /u=x -type f| cpio -pvdu ${D}${PTEST_PATH} |
| 49 | done |
| 50 | |
| 51 | # needed by some libop tests |
| 52 | cp -r events ${D}${PTEST_PATH} |
| 53 | |
| 54 | # needed by libregex regex_test |
| 55 | cp libregex/stl.pat ${D}${PTEST_PATH}/libregex |
| 56 | cp libregex/tests/mangled-name ${D}${PTEST_PATH}/libregex/tests |
| 57 | |
| 58 | # needed by litutil++ file_manip_tests |
| 59 | cp ${S}/libutil++/tests/file_manip_tests.cpp \ |
| 60 | libutil++/tests/file_manip_tests.o ${D}${PTEST_PATH}/libutil++/tests |
| 61 | } |