Skip to content

Conversation

@bcressey
Copy link
Contributor

@bcressey bcressey commented Nov 5, 2025

Issue number:
N/A

Description of changes:
Add libbpf-devel to support downstream builds that use libbpf-rs.

Vendor clang and LLVM from the Rust build, to tighten control over the tool chain used to compile BPF programs.

Include pyelftools to enable building systemd-boot on aarch64.

Testing done:
Built a Rust program that used libbpf-rs to load a BPF LSM hook.

Built systemd-boot for arm64 on arm64. There are other problems with building for x86_64, but this is a start to unblock experiments.

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

Rather than using the most recent version of clang available in the
selected Fedora release, source it from the Rust build.

That provides an indirect form of pinning and control over what ships
in the SDK, which is useful if BPF programs and other binaries might
be compiled with clang.

Signed-off-by: Ben Cressey <[email protected]>
pyelftools is required to build newer versions of systemd-boot.

Signed-off-by: Ben Cressey <[email protected]>
When building BPF programs using libbpf-rs, it's necessary to link
the build script that's compiled with the host toolchain with libbpf,
while also linking the target's binary to the target's libbpf.

Include libbpf-devel for this purpose.

Signed-off-by: Ben Cressey <[email protected]>
@bcressey bcressey requested review from cbgbt and piyush-jena November 5, 2025 06:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants