diff options
Diffstat (limited to 'meta/recipes-kernel/lttng/lttng-modules_2.11.7.bb')
-rw-r--r-- | meta/recipes-kernel/lttng/lttng-modules_2.11.7.bb | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/meta/recipes-kernel/lttng/lttng-modules_2.11.7.bb b/meta/recipes-kernel/lttng/lttng-modules_2.11.7.bb new file mode 100644 index 0000000000..d95613ba97 --- /dev/null +++ b/meta/recipes-kernel/lttng/lttng-modules_2.11.7.bb | |||
@@ -0,0 +1,49 @@ | |||
1 | SECTION = "devel" | ||
2 | SUMMARY = "Linux Trace Toolkit KERNEL MODULE" | ||
3 | DESCRIPTION = "The lttng-modules 2.0 package contains the kernel tracer modules" | ||
4 | HOMEPAGE = "https://lttng.org/" | ||
5 | LICENSE = "LGPLv2.1 & GPLv2 & MIT" | ||
6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3f882d431dc0f32f1f44c0707aa41128" | ||
7 | |||
8 | inherit module | ||
9 | |||
10 | COMPATIBLE_HOST = '(x86_64|i.86|powerpc|aarch64|mips|nios2|arm|riscv).*-linux' | ||
11 | |||
12 | SRC_URI = "https://lttng.org/files/${BPN}/${BPN}-${PV}.tar.bz2 \ | ||
13 | file://Makefile-Do-not-fail-if-CONFIG_TRACEPOINTS-is-not-en.patch \ | ||
14 | file://BUILD_RUNTIME_BUG_ON-vs-gcc7.patch \ | ||
15 | file://0017-fix-random-remove-unused-tracepoints-v5.18.patch \ | ||
16 | file://0018-fix-random-remove-unused-tracepoints-v5.10-v5.15.patch \ | ||
17 | file://0019-fix-random-tracepoints-removed-in-stable-kernels.patch \ | ||
18 | " | ||
19 | |||
20 | SRC_URI[md5sum] = "d1f1db78fe6fb6ea159c6e957a5ea6af" | ||
21 | SRC_URI[sha256sum] = "d7b7170e6af8c5a74dda06d9cf1afaac2519b6d8b7e823acce5bf7b23857a55e" | ||
22 | |||
23 | export INSTALL_MOD_DIR="kernel/lttng-modules" | ||
24 | |||
25 | EXTRA_OEMAKE += "KERNELDIR='${STAGING_KERNEL_DIR}'" | ||
26 | |||
27 | do_install_append() { | ||
28 | # Delete empty directories to avoid QA failures if no modules were built | ||
29 | if [ -d ${D}/${nonarch_base_libdir} ]; then | ||
30 | find ${D}/${nonarch_base_libdir} -depth -type d -empty -exec rmdir {} \; | ||
31 | fi | ||
32 | } | ||
33 | |||
34 | python do_package_prepend() { | ||
35 | if not os.path.exists(os.path.join(d.getVar('D'), d.getVar('nonarch_base_libdir')[1:], 'modules')): | ||
36 | bb.warn("%s: no modules were created; this may be due to CONFIG_TRACEPOINTS not being enabled in your kernel." % d.getVar('PN')) | ||
37 | } | ||
38 | |||
39 | BBCLASSEXTEND = "devupstream:target" | ||
40 | LIC_FILES_CHKSUM_class-devupstream = "file://LICENSE;md5=3f882d431dc0f32f1f44c0707aa41128" | ||
41 | DEFAULT_PREFERENCE_class-devupstream = "-1" | ||
42 | SRC_URI_class-devupstream = "git://git.lttng.org/lttng-modules;branch=stable-2.11 \ | ||
43 | file://Makefile-Do-not-fail-if-CONFIG_TRACEPOINTS-is-not-en.patch \ | ||
44 | file://BUILD_RUNTIME_BUG_ON-vs-gcc7.patch \ | ||
45 | " | ||
46 | SRCREV_class-devupstream = "17c413953603f063f2a9d6c3788bec914ce6f955" | ||
47 | PV_class-devupstream = "2.11.2+git${SRCPV}" | ||
48 | S_class-devupstream = "${WORKDIR}/git" | ||
49 | SRCREV_FORMAT ?= "lttng_git" | ||