diff options
Diffstat (limited to 'meta/recipes-kernel/lttng/lttng-tools_2.6.0.bb')
-rw-r--r-- | meta/recipes-kernel/lttng/lttng-tools_2.6.0.bb | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/meta/recipes-kernel/lttng/lttng-tools_2.6.0.bb b/meta/recipes-kernel/lttng/lttng-tools_2.6.0.bb new file mode 100644 index 0000000000..23eeb4567b --- /dev/null +++ b/meta/recipes-kernel/lttng/lttng-tools_2.6.0.bb | |||
@@ -0,0 +1,76 @@ | |||
1 | SECTION = "devel" | ||
2 | SUMMARY = "Linux Trace Toolkit Control" | ||
3 | DESCRIPTION = "The Linux trace toolkit is a suite of tools designed \ | ||
4 | to extract program execution details from the Linux operating system \ | ||
5 | and interpret them." | ||
6 | |||
7 | LICENSE = "GPLv2 & LGPLv2.1" | ||
8 | LIC_FILES_CHKSUM = "file://LICENSE;md5=01d7fc4496aacf37d90df90b90b0cac1 \ | ||
9 | file://gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | ||
10 | file://lgpl-2.1.txt;md5=0f0d71500e6a57fd24d825f33242b9ca" | ||
11 | |||
12 | DEPENDS = "liburcu popt lttng-ust libxml2" | ||
13 | RDEPENDS_${PN}-ptest += "make perl bash" | ||
14 | |||
15 | SRCREV = "d522c1f14285e2e8b10b7c0cd011847696ffe779" | ||
16 | |||
17 | PYTHON_OPTION = "am_cv_python_pyexecdir='${libdir}/python${PYTHON_BASEVERSION}/site-packages' \ | ||
18 | am_cv_python_pythondir='${libdir}/python${PYTHON_BASEVERSION}/site-packages' \ | ||
19 | PYTHON_INCLUDE='-I${STAGING_INCDIR}/python${PYTHON_BASEVERSION}' \ | ||
20 | " | ||
21 | PACKAGECONFIG ??= "lttng-ust" | ||
22 | PACKAGECONFIG[python] = "--enable-python-bindings ${PYTHON_OPTION},,python swig-native" | ||
23 | PACKAGECONFIG[lttng-ust] = ", --disable-lttng-ust, lttng-ust" | ||
24 | |||
25 | SRC_URI = "git://git.lttng.org/lttng-tools.git;branch=stable-2.6 \ | ||
26 | file://runtest-2.4.0.patch \ | ||
27 | file://run-ptest \ | ||
28 | " | ||
29 | |||
30 | S = "${WORKDIR}/git" | ||
31 | |||
32 | inherit autotools-brokensep ptest pkgconfig | ||
33 | |||
34 | export KERNELDIR="${STAGING_KERNEL_DIR}" | ||
35 | |||
36 | FILES_${PN} += "${libdir}/lttng/libexec/* ${datadir}/xml/lttng \ | ||
37 | ${libdir}/python${PYTHON_BASEVERSION}/site-packages/*" | ||
38 | FILES_${PN}-dbg += "${libdir}/lttng/libexec/.debug \ | ||
39 | ${libdir}/python2.7/site-packages/.debug" | ||
40 | FILES_${PN}-staticdev += "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*.a" | ||
41 | FILES_${PN}-dev += "${libdir}/python${PYTHON_BASEVERSION}/site-packages/*.la" | ||
42 | |||
43 | # Since files are installed into ${libdir}/lttng/libexec we match | ||
44 | # the libexec insane test so skip it. | ||
45 | # Python module needs to keep _lttng.so | ||
46 | INSANE_SKIP_${PN} = "libexec dev-so" | ||
47 | INSANE_SKIP_${PN}-dbg = "libexec" | ||
48 | |||
49 | do_configure_prepend () { | ||
50 | # Delete a shipped m4 file that overrides our patched one | ||
51 | rm -f ${S}/config/libxml.m4 | ||
52 | } | ||
53 | |||
54 | do_install_ptest () { | ||
55 | chmod +x ${D}${PTEST_PATH}/tests/utils/utils.sh | ||
56 | for i in `find ${D}${PTEST_PATH} -perm /u+x -type f`; do | ||
57 | sed -e "s:\$TESTDIR.*/src/bin/lttng/\$LTTNG_BIN:\$LTTNG_BIN:g" \ | ||
58 | -e "s:\$TESTDIR/../src/bin/lttng-sessiond/\$SESSIOND_BIN:\$SESSIOND_BIN:g" \ | ||
59 | -e "s:\$DIR/../src/bin/lttng-sessiond/\$SESSIOND_BIN:\$SESSIOND_BIN:g" \ | ||
60 | -e "s:\$TESTDIR/../src/bin/lttng-consumerd/:${libdir}/lttng/libexec/:g" \ | ||
61 | -e "s:\$DIR/../src/bin/lttng-consumerd/:${libdir}/lttng/libexec/:g" \ | ||
62 | -e "s:\$TESTDIR/../src/bin/lttng-relayd/\$RELAYD_BIN:\$RELAYD_BIN:g" \ | ||
63 | -e "s:\$DIR/../src/bin/lttng-sessiond/lttng-sessiond:\$SESSIOND_BIN:g" \ | ||
64 | -e "s:\$DIR/../src/bin/lttng-relayd/\$RELAYD_BIN:\$RELAYD_BIN:g" \ | ||
65 | -e "s:\$DIR/../bin/lttng-relayd/\$RELAYD_BIN:\$RELAYD_BIN:g" \ | ||
66 | -i $i | ||
67 | done | ||
68 | |||
69 | sed -e "s:src/bin/lttng-sessiond:$bindir:g" \ | ||
70 | -e "s:src/bin/lttng-consumerd:${libexecdir}/libexec/:g" \ | ||
71 | -i ${D}${PTEST_PATH}/tests/regression/run-report.py | ||
72 | sed -e "s:src/bin:bin:g" -e "s:lt-::g" \ | ||
73 | -i ${D}${PTEST_PATH}/tests/utils/utils.sh | ||
74 | sed -e "s:ini_config:\.libs\/ini_config:" \ | ||
75 | -i ${D}${PTEST_PATH}/tests/unit/ini_config/test_ini_config | ||
76 | } | ||