From: Harish Sadineni <[email protected]> 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. Error: | make[3]: *** ../bpf/bpftool: No such file or directory. Stop. As a workaround currently disabling BUILD_BPF_SKEL to make perf to build. Signed-off-by: Harish Sadineni <[email protected]> --- meta/recipes-kernel/perf/perf.bb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb index c3ef25fd99..9fc100e961 100644 --- a/meta/recipes-kernel/perf/perf.bb +++ b/meta/recipes-kernel/perf/perf.bb @@ -438,3 +438,9 @@ perf_fix_sources () { fi done } + +python () { + kernel_features = d.getVar('KERNEL_FEATURES') + if 'rust' in kernel_features: + d.appendVar('EXTRA_OEMAKE', ' BUILD_BPF_SKEL=0') +} -- 2.49.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#237318): https://lists.openembedded.org/g/openembedded-core/message/237318 Mute This Topic: https://lists.openembedded.org/mt/119388907/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
