diff options
Diffstat (limited to 'meta/recipes-kernel/lttng/lttng-tools_2.5.0.bb')
-rw-r--r-- | meta/recipes-kernel/lttng/lttng-tools_2.5.0.bb | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/meta/recipes-kernel/lttng/lttng-tools_2.5.0.bb b/meta/recipes-kernel/lttng/lttng-tools_2.5.0.bb new file mode 100644 index 0000000000..14e5f9ebf2 --- /dev/null +++ b/meta/recipes-kernel/lttng/lttng-tools_2.5.0.bb | |||
@@ -0,0 +1,63 @@ | |||
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" | ||
14 | |||
15 | SRCREV = "8b27cacb277c2cdab791139b08da8eb87ab14a88" | ||
16 | PV = "v2.5.0" | ||
17 | |||
18 | SRC_URI = "git://git.lttng.org/lttng-tools.git;branch=stable-2.5 \ | ||
19 | file://runtest-2.4.0.patch \ | ||
20 | file://run-ptest \ | ||
21 | " | ||
22 | |||
23 | S = "${WORKDIR}/git" | ||
24 | |||
25 | inherit autotools-brokensep ptest pkgconfig | ||
26 | |||
27 | export KERNELDIR="${STAGING_KERNEL_DIR}" | ||
28 | |||
29 | FILES_${PN} += "${libdir}/lttng/libexec/* ${datadir}/xml/lttng" | ||
30 | FILES_${PN}-dbg += "${libdir}/lttng/libexec/.debug" | ||
31 | |||
32 | # Since files are installed into ${libdir}/lttng/libexec we match | ||
33 | # the libexec insane test so skip it. | ||
34 | INSANE_SKIP_${PN} = "libexec" | ||
35 | INSANE_SKIP_${PN}-dbg = "libexec" | ||
36 | |||
37 | do_configure_prepend () { | ||
38 | # Delete a shipped m4 file that overrides our patched one | ||
39 | rm -f ${S}/config/libxml.m4 | ||
40 | } | ||
41 | |||
42 | do_install_ptest () { | ||
43 | chmod +x ${D}/${libdir}/${PN}/ptest/tests/utils/utils.sh | ||
44 | for i in `find ${D}/${libdir}/${PN}/ptest -perm /u+x -type f`; do | ||
45 | sed -e "s:\$TESTDIR.*/src/bin/lttng/\$LTTNG_BIN:\$LTTNG_BIN:g" \ | ||
46 | -e "s:\$TESTDIR/../src/bin/lttng-sessiond/\$SESSIOND_BIN:\$SESSIOND_BIN:g" \ | ||
47 | -e "s:\$DIR/../src/bin/lttng-sessiond/\$SESSIOND_BIN:\$SESSIOND_BIN:g" \ | ||
48 | -e "s:\$TESTDIR/../src/bin/lttng-consumerd/:${libdir}/lttng/libexec/:g" \ | ||
49 | -e "s:\$DIR/../src/bin/lttng-consumerd/:${libdir}/lttng/libexec/:g" \ | ||
50 | -e "s:\$TESTDIR/../src/bin/lttng-relayd/\$RELAYD_BIN:\$RELAYD_BIN:g" \ | ||
51 | -e "s:\$DIR/../src/bin/lttng-sessiond/lttng-sessiond:\$SESSIOND_BIN:g" \ | ||
52 | -e "s:\$DIR/../src/bin/lttng-relayd/\$RELAYD_BIN:\$RELAYD_BIN:g" \ | ||
53 | -e "s:\$DIR/../bin/lttng-relayd/\$RELAYD_BIN:\$RELAYD_BIN:g" \ | ||
54 | -i $i | ||
55 | done | ||
56 | |||
57 | sed -e "s:src/bin/lttng-sessiond:$bindir:g" \ | ||
58 | -e "s:src/bin/lttng-consumerd:${libexecdir}/libexec/:g" \ | ||
59 | -i ${D}/${libdir}/${PN}/ptest/tests/regression/run-report.py | ||
60 | sed -e "s:src/bin:bin:g" \ | ||
61 | -i ${D}/${libdir}/${PN}/ptest/tests/utils/utils.sh | ||
62 | |||
63 | } | ||