blob: 96ef43dc30190ac132fd9c46fb07a6cd05882203 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -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"
15RRECOMMENDS_${PN} = "kernel-vmlinux"
16
17FILES_${PN} = "${bindir} ${libdir}/${BPN}/lib*${SOLIBS} ${datadir}/${BPN}"
18FILES_${PN}-dev += "${libdir}/${BPN}/lib*${SOLIBSDEV} ${libdir}/${BPN}/lib*.la"
19FILES_${PN}-staticdev += "${libdir}/${BPN}/lib*.a"
20
21SRC_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 Williamsd8c66bc2016-06-20 12:57:21 -050026 file://root-home-dir.patch \
Patrick Williamsc0f7c042017-02-23 20:41:17 -060027 file://0001-Add-rmb-definition-for-NIOS2-architecture.patch \
28 file://0001-Fix-FTBFS-problem-with-GCC-6.patch \
29"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050030
31SRC_URI_append_libc-musl = " file://musl.patch"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050032
33inherit autotools pkgconfig ptest
34
35EXTRA_OECONF = "--with-kernel=${STAGING_DIR_HOST}${prefix} --without-x ac_cv_prog_XSLTPROC="
36do_configure () {
37 cp ${WORKDIR}/acinclude.m4 ${S}/
38 autotools_do_configure
39}
40
41EXTRA_OEMAKE = "SRCDIR=${PTEST_PATH}/libutil++/tests"
42do_compile_ptest() {
43 oe_runmake check
44}
45
46do_install_ptest() {
47 subdirs="libdb/tests libutil++/tests libregex/tests libutil/tests libop/tests libdb/tests "
48 for tooltest in ${subdirs}
49 do
50 find ${tooltest} -perm /u=x -type f| cpio -pvdu ${D}${PTEST_PATH}
51 done
52
53 # needed by some libop tests
54 cp -r events ${D}${PTEST_PATH}
55
56 # needed by libregex regex_test
57 cp libregex/stl.pat ${D}${PTEST_PATH}/libregex
58 cp libregex/tests/mangled-name ${D}${PTEST_PATH}/libregex/tests
59
60 # needed by litutil++ file_manip_tests
61 cp ${S}/libutil++/tests/file_manip_tests.cpp \
62 libutil++/tests/file_manip_tests.o ${D}${PTEST_PATH}/libutil++/tests
63}