Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 1 | SECTION = "devel" |
| 2 | SUMMARY = "Linux Trace Toolkit KERNEL MODULE" |
| 3 | DESCRIPTION = "The lttng-modules 2.0 package contains the kernel tracer modules" |
| 4 | LICENSE = "LGPLv2.1 & GPLv2 & MIT" |
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3f882d431dc0f32f1f44c0707aa41128" |
| 6 | |
| 7 | inherit module |
| 8 | |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 9 | include lttng-platforms.inc |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 10 | |
| 11 | SRC_URI = "https://lttng.org/files/${BPN}/${BPN}-${PV}.tar.bz2 \ |
| 12 | file://Makefile-Do-not-fail-if-CONFIG_TRACEPOINTS-is-not-en.patch \ |
| 13 | file://BUILD_RUNTIME_BUG_ON-vs-gcc7.patch \ |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 14 | file://0001-Kconfig-fix-dependency-issue-when-building-in-tree-w.patch \ |
| 15 | file://0002-fix-Move-mmutrace.h-into-the-mmu-sub-directory-v5.9.patch \ |
| 16 | file://0003-fix-KVM-x86-mmu-Make-kvm_mmu_page-definition-and-acc.patch \ |
| 17 | file://0004-fix-ext4-limit-the-length-of-per-inode-prealloc-list.patch \ |
| 18 | file://0005-fix-ext4-indicate-via-a-block-bitmap-read-is-prefetc.patch \ |
| 19 | file://0006-fix-removal-of-smp_-read_barrier_depends-v5.9.patch \ |
| 20 | file://0007-fix-writeback-Drop-I_DIRTY_TIME_EXPIRE-v5.9.patch \ |
| 21 | file://0008-fix-writeback-Fix-sync-livelock-due-to-b_dirty_time-.patch \ |
| 22 | file://0009-fix-version-ranges-for-ext4_discard_preallocations-a.patch \ |
| 23 | file://0010-Fix-system-call-filter-table.patch \ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 24 | " |
| 25 | |
Andrew Geissler | 635e0e4 | 2020-08-21 15:58:33 -0500 | [diff] [blame] | 26 | SRC_URI[sha256sum] = "df50bc3bd58679705714f17721acf619a8b0cedc694f8a97052aa5099626feca" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 27 | |
| 28 | export INSTALL_MOD_DIR="kernel/lttng-modules" |
| 29 | |
| 30 | EXTRA_OEMAKE += "KERNELDIR='${STAGING_KERNEL_DIR}'" |
| 31 | |
| 32 | do_install_append() { |
| 33 | # Delete empty directories to avoid QA failures if no modules were built |
| 34 | find ${D}/${nonarch_base_libdir} -depth -type d -empty -exec rmdir {} \; |
| 35 | } |
| 36 | |
| 37 | python do_package_prepend() { |
| 38 | if not os.path.exists(os.path.join(d.getVar('D'), d.getVar('nonarch_base_libdir')[1:], 'modules')): |
| 39 | bb.warn("%s: no modules were created; this may be due to CONFIG_TRACEPOINTS not being enabled in your kernel." % d.getVar('PN')) |
| 40 | } |
| 41 | |
| 42 | BBCLASSEXTEND = "devupstream:target" |
| 43 | LIC_FILES_CHKSUM_class-devupstream = "file://LICENSE;md5=3f882d431dc0f32f1f44c0707aa41128" |
| 44 | DEFAULT_PREFERENCE_class-devupstream = "-1" |
Andrew Geissler | 475cb72 | 2020-07-10 16:00:51 -0500 | [diff] [blame] | 45 | SRC_URI_class-devupstream = "git://git.lttng.org/lttng-modules;branch=stable-2.12 \ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 46 | file://Makefile-Do-not-fail-if-CONFIG_TRACEPOINTS-is-not-en.patch \ |
| 47 | file://BUILD_RUNTIME_BUG_ON-vs-gcc7.patch \ |
| 48 | " |
Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame] | 49 | SRCREV_class-devupstream = "ad594e3a953db1b0c3c059fde45b5a5494f6be78" |
| 50 | PV_class-devupstream = "2.12.2+git${SRCPV}" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 51 | S_class-devupstream = "${WORKDIR}/git" |
| 52 | SRCREV_FORMAT ?= "lttng_git" |