summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/oprofile/oprofile.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-kernel/oprofile/oprofile.inc')
-rw-r--r--meta/recipes-kernel/oprofile/oprofile.inc31
1 files changed, 29 insertions, 2 deletions
diff --git a/meta/recipes-kernel/oprofile/oprofile.inc b/meta/recipes-kernel/oprofile/oprofile.inc
index ccf9f9fa61..aaba48e8a0 100644
--- a/meta/recipes-kernel/oprofile/oprofile.inc
+++ b/meta/recipes-kernel/oprofile/oprofile.inc
@@ -20,9 +20,11 @@ FILES_${PN}-staticdev += "${libdir}/${BPN}/lib*.a"
20 20
21SRC_URI = "file://opstart.patch \ 21SRC_URI = "file://opstart.patch \
22 file://oprofile-root.patch \ 22 file://oprofile-root.patch \
23 file://acinclude.m4" 23 file://acinclude.m4 \
24 file://oprofile-cross-compile-tests.patch \
25 file://run-ptest"
24 26
25inherit autotools-brokensep pkgconfig 27inherit autotools-brokensep pkgconfig ptest
26 28
27EXTRA_OECONF = "--with-kernel=${STAGING_KERNEL_DIR} --without-x" 29EXTRA_OECONF = "--with-kernel=${STAGING_KERNEL_DIR} --without-x"
28do_configure () { 30do_configure () {
@@ -30,3 +32,28 @@ do_configure () {
30 cp ${WORKDIR}/acinclude.m4 ${S}/ 32 cp ${WORKDIR}/acinclude.m4 ${S}/
31 autotools_do_configure 33 autotools_do_configure
32} 34}
35
36EXTRA_OEMAKE = "SRCDIR=${PTEST_PATH}/libutil++/tests"
37do_compile_ptest() {
38 oe_runmake check
39}
40
41do_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}