]> code.ossystems Code Review - openembedded-core.git/commit
linux-yocto-rt/5.8: fix lttng-modules build
authorBruce Ashfield <bruce.ashfield@gmail.com>
Mon, 24 Aug 2020 19:00:39 +0000 (15:00 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 25 Aug 2020 00:00:20 +0000 (01:00 +0100)
commit0ebbcbefc8c1a6731b81b7f1aba695a3665a256e
treecca6f9a7791e6ca53c813eac59c45fafc3b909f5
parent74188412ae3019235151f3e606a470ff27c7ed63
linux-yocto-rt/5.8: fix lttng-modules build

Integrating the following commit(s) to linux-yocto-rt/5.8:

commit baee1af811ec9bd3e64990543b7cc85e77c8f50c (HEAD -> master)
Author: Bruce Ashfield <bruce.ashfield@gmail.com>
Date:   Sun Aug 23 22:50:30 2020 -0400

    linux-yocto/rt: enable kprobes by default

    Traditionally kprobes and -rt haven't mixed well, but recent -rt
    kernels support kprobes without issues.

    lttng now requires kprobes to be enabled, or the following error
    is thrown:

    |
    build/tmp/work/qemux86_64-poky-linux/lttng-modules/2.12.2-r0/lttng-modules-2.12.2/wrapper/kallsyms.c:20:3:
    error: #error "LTTng-modules requires CONFIG_KPROBES on kernels >= 5.7.0"
    |    20 | # error "LTTng-modules requires CONFIG_KPROBES on kernels >= 5.7.0"
    |       |   ^~~~~
    | make[3]: ***
    [build/tmp/work-shared/qemux86-64/kernel-source/scripts/Makefile.build:280:
    build/tmp/work/qemux86_64-poky-linux/lttng-modules/2.12.2-r0/lttng-modules-2.12.2/wrapper/kallsyms.o]
    Error 1

    By including the kprobes fragment into the -rt kernel by default, we
    fix the issue.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-kernel/linux/linux-yocto-rt_5.8.bb
meta/recipes-kernel/linux/linux-yocto-tiny_5.8.bb
meta/recipes-kernel/linux/linux-yocto_5.8.bb