summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/lttng/lttng-modules_2.13.11.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-kernel/lttng/lttng-modules_2.13.11.bb')
-rw-r--r--meta/recipes-kernel/lttng/lttng-modules_2.13.11.bb41
1 files changed, 41 insertions, 0 deletions
diff --git a/meta/recipes-kernel/lttng/lttng-modules_2.13.11.bb b/meta/recipes-kernel/lttng/lttng-modules_2.13.11.bb
new file mode 100644
index 0000000000..4f2cadee90
--- /dev/null
+++ b/meta/recipes-kernel/lttng/lttng-modules_2.13.11.bb
@@ -0,0 +1,41 @@
1SECTION = "devel"
2SUMMARY = "Linux Trace Toolkit KERNEL MODULE"
3DESCRIPTION = "The lttng-modules 2.0 package contains the kernel tracer modules"
4HOMEPAGE = "https://lttng.org/"
5LICENSE = "LGPL-2.1-only & GPL-2.0-only & MIT"
6LIC_FILES_CHKSUM = "file://LICENSE;md5=0464cff101a009c403cd2ed65d01d4c4"
7
8inherit module
9
10include lttng-platforms.inc
11
12SRC_URI = "https://lttng.org/files/${BPN}/${BPN}-${PV}.tar.bz2 \
13 "
14
15# Use :append here so that the patch is applied also when using devupstream
16SRC_URI:append = " file://0001-src-Kbuild-change-missing-CONFIG_TRACEPOINTS-to-warn.patch"
17
18SRC_URI[sha256sum] = "297211d6fda459c85793c1f498c90fad2939cda7939d503f3ec5eaaf5fbec3c7"
19
20export INSTALL_MOD_DIR="kernel/lttng-modules"
21
22EXTRA_OEMAKE += "KERNELDIR='${STAGING_KERNEL_DIR}'"
23
24MODULES_MODULE_SYMVERS_LOCATION = "src"
25
26do_install:append() {
27 # Delete empty directories to avoid QA failures if no modules were built
28 if [ -d ${D}/${nonarch_base_libdir} ]; then
29 find ${D}/${nonarch_base_libdir} -depth -type d -empty -exec rmdir {} \;
30 fi
31}
32
33python do_package:prepend() {
34 if not os.path.exists(os.path.join(d.getVar('D'), d.getVar('nonarch_base_libdir')[1:], 'modules')):
35 bb.warn("%s: no modules were created; this may be due to CONFIG_TRACEPOINTS not being enabled in your kernel." % d.getVar('PN'))
36}
37
38BBCLASSEXTEND = "devupstream:target"
39SRC_URI:class-devupstream = "git://git.lttng.org/lttng-modules;branch=stable-2.13;protocol=https"
40SRCREV:class-devupstream = "7584cfc04914cb0842a986e9808686858b9c8630"
41SRCREV_FORMAT ?= "lttng_git"