blob: a9ee775d45bbdc3dfb30c0b25bd7e87b93b35e17 [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"
14RDEPENDS_${PN} = "binutils-symlinks"
Brad Bishopd7bf8c12018-02-25 22:55:05 -050015
16FILES_${PN} = "${bindir} ${libdir}/${BPN}/lib*${SOLIBS} ${datadir}/${BPN}"
17FILES_${PN}-dev += "${libdir}/${BPN}/lib*${SOLIBSDEV} ${libdir}/${BPN}/lib*.la"
18FILES_${PN}-staticdev += "${libdir}/${BPN}/lib*.a"
19
20SRC_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 Bishop19323692019-04-05 15:28:33 -040027 file://0001-replace-sym_iterator-0-with-sym_iterator.patch \
Brad Bishopd7bf8c12018-02-25 22:55:05 -050028"
29UPSTREAM_CHECK_REGEX = "oprofile-(?P<pver>\d+(\.\d+)+)/"
30UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/oprofile/files/oprofile/"
31
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080032SRC_URI_append_libc-musl = " file://musl.patch \
33"
Brad Bishopd7bf8c12018-02-25 22:55:05 -050034
35inherit autotools pkgconfig ptest
36
37EXTRA_OECONF = "--with-kernel=${STAGING_DIR_HOST}${prefix} --without-x ac_cv_prog_XSLTPROC="
38do_configure () {
39 cp ${WORKDIR}/acinclude.m4 ${S}/
40 autotools_do_configure
41}
42
43EXTRA_OEMAKE = "SRCDIR=${PTEST_PATH}/libutil++/tests"
44do_compile_ptest() {
45 oe_runmake check
46}
47
48do_install_ptest() {
49 subdirs="libdb/tests libutil++/tests libregex/tests libutil/tests libop/tests libdb/tests "
50 for tooltest in ${subdirs}
51 do
52 find ${tooltest} -perm /u=x -type f| cpio -pvdu ${D}${PTEST_PATH}
53 done
54
55 # needed by some libop tests
56 cp -r events ${D}${PTEST_PATH}
57
58 # needed by libregex regex_test
59 cp libregex/stl.pat ${D}${PTEST_PATH}/libregex
60 cp libregex/tests/mangled-name ${D}${PTEST_PATH}/libregex/tests
61
62 # needed by litutil++ file_manip_tests
63 cp ${S}/libutil++/tests/file_manip_tests.cpp \
64 libutil++/tests/file_manip_tests.o ${D}${PTEST_PATH}/libutil++/tests
65}