summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/lttng/lttng-ust_2.13.0.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-kernel/lttng/lttng-ust_2.13.0.bb')
-rw-r--r--meta/recipes-kernel/lttng/lttng-ust_2.13.0.bb51
1 files changed, 51 insertions, 0 deletions
diff --git a/meta/recipes-kernel/lttng/lttng-ust_2.13.0.bb b/meta/recipes-kernel/lttng/lttng-ust_2.13.0.bb
new file mode 100644
index 0000000..2074b8c
--- /dev/null
+++ b/meta/recipes-kernel/lttng/lttng-ust_2.13.0.bb
@@ -0,0 +1,51 @@
1SUMMARY = "Linux Trace Toolkit Userspace Tracer 2.x"
2DESCRIPTION = "The LTTng UST 2.x package contains the userspace tracer library to trace userspace codes."
3HOMEPAGE = "http://lttng.org/ust"
4BUGTRACKER = "https://bugs.lttng.org/projects/lttng-ust"
5
6LICENSE = "LGPLv2.1+ & MIT & GPLv2"
7LIC_FILES_CHKSUM = "file://LICENSE;md5=a46577a38ad0c36ff6ff43ccf40c480f"
8
9PYTHON_OPTION = "am_cv_python_pyexecdir='${PYTHON_SITEPACKAGES_DIR}' \
10 am_cv_python_pythondir='${PYTHON_SITEPACKAGES_DIR}' \
11 PYTHON_INCLUDE='-I${STAGING_INCDIR}/python${PYTHON_BASEVERSION}${PYTHON_ABI}' \
12"
13
14inherit autotools lib_package manpages python3native
15
16include lttng-platforms.inc
17
18EXTRA_OECONF = "--disable-numa"
19
20DEPENDS = "liburcu util-linux"
21RDEPENDS:${PN}-bin = "python3-core"
22
23# For backwards compatibility after rename
24RPROVIDES:${PN} = "lttng2-ust"
25RREPLACES:${PN} = "lttng2-ust"
26RCONFLICTS:${PN} = "lttng2-ust"
27
28PE = "2"
29
30SRC_URI = "https://lttng.org/files/lttng-ust/lttng-ust-${PV}.tar.bz2 \
31 file://0001-python-lttngust-Makefile.am-Add-install-lib-to-setup.patch \
32 file://0001-lttng-ust-common-link-with-liburcu-explicitly.patch \
33 "
34
35SRC_URI[sha256sum] = "54e4c933679cf6a07971dc5861ce57fc4876ab740ab612407b30b5fc85371750"
36
37CVE_PRODUCT = "ust"
38
39PACKAGECONFIG[examples] = "--enable-examples, --disable-examples,"
40PACKAGECONFIG[manpages] = "--enable-man-pages, --disable-man-pages, asciidoc-native xmlto-native libxslt-native"
41PACKAGECONFIG[python3-agent] = "--enable-python-agent ${PYTHON_OPTION}, --disable-python-agent, python3, python3"
42
43FILES:${PN} += " ${PYTHON_SITEPACKAGES_DIR}/*"
44FILES:${PN}-staticdev += " ${PYTHON_SITEPACKAGES_DIR}/*.a"
45FILES:${PN}-dev += " ${PYTHON_SITEPACKAGES_DIR}/*.la"
46
47do_install:append() {
48 # Patch python tools to use Python 3; they should be source compatible, but
49 # still refer to Python 2 in the shebang
50 sed -i -e '1s,#!.*python.*,#!${bindir}/python3,' ${D}${bindir}/lttng-gen-tp
51}