diff mbox series

[wrynose,12/36] perf: disable BUILD_BPF_SKEL by default

Message ID f48f6fb91cb013781a9576ecaf9ba6812c514b28.1781960051.git.yoann.congal@smile.fr
State New
Headers show
Series [wrynose,01/36] gcc: Upgrade GCC to 15.3 release | expand

Commit Message

Yoann Congal June 20, 2026, 12:59 p.m. UTC
From: Harish Sadineni <Harish.Sadineni@windriver.com>

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>
(cherry picked from commit 14277b97ee4217d6a2b75546dff11b82bfae0c1f)
Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
---
 meta/recipes-kernel/perf/perf.bb | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox series

Patch

diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb
index c3ef25fd999..e3e5d55e396 100644
--- a/meta/recipes-kernel/perf/perf.bb
+++ b/meta/recipes-kernel/perf/perf.bb
@@ -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"