]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
systemtap: fix on target build for 4.4 and 5.10+
authorBruce Ashfield <bruce.ashfield@gmail.com>
Tue, 22 Dec 2020 14:28:26 +0000 (09:28 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 24 Dec 2020 08:18:54 +0000 (08:18 +0000)
commit25fa864270efe3ff5699a1bf9ebdf599e96362a5
treeb1f7886a98c47654219d085fca7338447e7f7558
parent5f635423f00e7469e89f6729d973ca447a3ff11b
systemtap: fix on target build for 4.4 and 5.10+

The following systemtap commit:

    commit 7615cae790c899bc8a82841c75c8ea9c6fa54df3
    Author: Frank Ch. Eigler <fche@redhat.com>
    Date:   Mon Nov 9 19:18:19 2020 -0500

        PR26665: relayfs-on-procfs megapatch

Changes the way that capabilities are checked when compiling
a systemtap probe.

In our cross-build -> on target workflow, this results in a
mismatch between the systemtap configuration capabilities and
the kernel configuration.

The result is a compilation failure since the security
components are protected by two different #ifdef's, and they
can be out of sync. By protecting the include and callsite with
the same #ifdef, we ensure they are in sync and fix our
on target problem.

While this fix is oe-specific, a variant will be proposed
upstream once a deeper analsysis of other options has been
completed.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-kernel/systemtap/systemtap/0001-transport-protect-include-and-callsite-with-same-con.patch [new file with mode: 0644]
meta/recipes-kernel/systemtap/systemtap_git.inc