Skip to content

Commit

Permalink
recipes-devtools/llvm/llvm_%.bbappend: fix the build of bpftrace ptes…
Browse files Browse the repository at this point in the history
…t failed

Due to commit [1][2], llvm-native was added to bpftrace to provide llvm-objcopy
for the ptest.

But because of commit [3], llvm-native requires opengl in DISTRO_FEATURES
to support libllvm.

In order to make the build of bpftrace ptest work, explicitly add libllvm to
PACKAGECONFIG for llvm-native if ptest enabled.

According to [2][3], bpftrace used llvm-objcopy to generate BTF data for unit tests,
regardless opengl in DISTRO_FEATURES, enable accelerated software renderer or not
does not have side effect on bpftrace

[1] kraj@bf6c02a
[2] bpftrace/bpftrace@6cc531e
[3] https://git.openembedded.org/openembedded-core/commit/?id=ec22bfa67f6f1766102501d4593ce29aafe8c166

Signed-off-by: Hongxu Jia <[email protected]>
  • Loading branch information
hongxu-jia authored and kraj committed Jul 9, 2024
1 parent ee218b7 commit 0c2b19b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions recipes-devtools/llvm/llvm_%.bbappend
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PACKAGECONFIG:append:class-native = " ${@bb.utils.contains('PTEST_ENABLED', '1', 'libllvm', '', d)}"

0 comments on commit 0c2b19b

Please sign in to comment.