]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
perf: disable BUILD_BPF_SKEL by default
authorHarish Sadineni <Harish.Sadineni@windriver.com>
Wed, 20 May 2026 10:01:37 +0000 (03:01 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 28 May 2026 10:21:53 +0000 (11:21 +0100)
Enabling the Rust in-kernel feature pulls in clang-native as a
dependency for the kernel build. During the perf build, the presence of clang
causes all BUILD_BPF_SKEL dependency checks to succeed, which makes perf attempt
to build bpftool as part of its build process and make build to fail.

Previously, When Rust support was not enabled, BUILD_BPF_SKEL is set 0 due to missing
clang dependency.

The perf recipe does not currently provide/support the required
bpftool build environment, resulting in build failures such as:

Error:
| make[3]: *** ../bpf/bpftool: No such file or directory.  Stop.

As a workaround currently disabling BUILD_BPF_SKEL by default to make perf to build.

Signed-off-by: Harish Sadineni <Harish.Sadineni@windriver.com>
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-kernel/perf/perf.bb

index c3ef25fd999995ad18d5b6084146f2e288b7e3e1..e3e5d55e3965b8b7f6bfd875fb89674af08f622f 100644 (file)
@@ -438,3 +438,9 @@ perf_fix_sources () {
                fi
        done
 }
+
+# Disable BUILD_BPF_SKEL by default.
+# Rust in kernel support pulls in clang-native, which satisfies the
+# BUILD_BPF_SKEL dependency checks and causes perf to attempt
+# building bpftool, resulting in a build failure.
+PACKAGECONFIG[bpf-skel] = ",BUILD_BPF_SKEL=0"