diff options
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.bb | 41 |
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 @@ | |||
| 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 = "LGPL-2.1-only & GPL-2.0-only & MIT" | ||
| 6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=0464cff101a009c403cd2ed65d01d4c4" | ||
| 7 | |||
| 8 | inherit module | ||
| 9 | |||
| 10 | include lttng-platforms.inc | ||
| 11 | |||
| 12 | SRC_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 | ||
| 16 | SRC_URI:append = " file://0001-src-Kbuild-change-missing-CONFIG_TRACEPOINTS-to-warn.patch" | ||
| 17 | |||
| 18 | SRC_URI[sha256sum] = "297211d6fda459c85793c1f498c90fad2939cda7939d503f3ec5eaaf5fbec3c7" | ||
| 19 | |||
| 20 | export INSTALL_MOD_DIR="kernel/lttng-modules" | ||
| 21 | |||
| 22 | EXTRA_OEMAKE += "KERNELDIR='${STAGING_KERNEL_DIR}'" | ||
| 23 | |||
| 24 | MODULES_MODULE_SYMVERS_LOCATION = "src" | ||
| 25 | |||
| 26 | do_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 | |||
| 33 | python 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 | |||
| 38 | BBCLASSEXTEND = "devupstream:target" | ||
| 39 | SRC_URI:class-devupstream = "git://git.lttng.org/lttng-modules;branch=stable-2.13;protocol=https" | ||
| 40 | SRCREV:class-devupstream = "7584cfc04914cb0842a986e9808686858b9c8630" | ||
| 41 | SRCREV_FORMAT ?= "lttng_git" | ||
