diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
commit | 972dcfcdbfe75dcfeb777150c136576cf1a71e99 (patch) | |
tree | 97a61cd7e293d7ae9d56ef7ed0f81253365bb026 /meta/recipes-kernel/oprofile/oprofile.inc | |
download | poky-972dcfcdbfe75dcfeb777150c136576cf1a71e99.tar.gz |
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-kernel/oprofile/oprofile.inc')
-rw-r--r-- | meta/recipes-kernel/oprofile/oprofile.inc | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/meta/recipes-kernel/oprofile/oprofile.inc b/meta/recipes-kernel/oprofile/oprofile.inc new file mode 100644 index 0000000000..69582039e8 --- /dev/null +++ b/meta/recipes-kernel/oprofile/oprofile.inc | |||
@@ -0,0 +1,59 @@ | |||
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 = "file://opstart.patch \ | ||
22 | file://acinclude.m4 \ | ||
23 | file://automake-foreign.patch \ | ||
24 | file://oprofile-cross-compile-tests.patch \ | ||
25 | file://run-ptest \ | ||
26 | file://root-home-dir.patch" | ||
27 | |||
28 | inherit autotools-brokensep pkgconfig ptest | ||
29 | |||
30 | EXTRA_OECONF = "--with-kernel=${STAGING_KERNEL_DIR} --without-x" | ||
31 | do_configure () { | ||
32 | cp ${WORKDIR}/acinclude.m4 ${S}/ | ||
33 | autotools_do_configure | ||
34 | } | ||
35 | |||
36 | EXTRA_OEMAKE = "SRCDIR=${PTEST_PATH}/libutil++/tests" | ||
37 | do_compile_ptest() { | ||
38 | oe_runmake check | ||
39 | } | ||
40 | |||
41 | do_install_ptest() { | ||
42 | subdirs="libdb/tests libutil++/tests libregex/tests libutil/tests libop/tests libdb/tests " | ||
43 | cd ${S} | ||
44 | for tooltest in ${subdirs} | ||
45 | do | ||
46 | find ${tooltest} -perm /u=x -type f| cpio -pvdu ${D}${PTEST_PATH} | ||
47 | done | ||
48 | |||
49 | # needed by some libop tests | ||
50 | cp -r events ${D}${PTEST_PATH} | ||
51 | |||
52 | # needed by libregex regex_test | ||
53 | cp libregex/stl.pat ${D}${PTEST_PATH}/libregex | ||
54 | cp libregex/tests/mangled-name ${D}${PTEST_PATH}/libregex/tests | ||
55 | |||
56 | # needed by litutil++ file_manip_tests | ||
57 | cp libutil++/tests/file_manip_tests.cpp \ | ||
58 | libutil++/tests/file_manip_tests.o ${D}${PTEST_PATH}/libutil++/tests | ||
59 | } | ||