Skip to content

Conversation

@sinkap
Copy link
Contributor

@sinkap sinkap commented Jul 14, 2025

xxd is used to generate a C header from a verification certificate (DER encoded) which is used to test BPF signing infrastructure in selftests.

xxd is used to generate a C header from a verification certificate (DER encoded) which is used to test BPF signing infrastructure in selftests.
@sinkap sinkap changed the title Add xxd to the base CI debian Image Add xxd to the base CI debian image Jul 14, 2025
@borkmann borkmann requested a review from chantra July 14, 2025 17:50
@theihor
Copy link
Contributor

theihor commented Jul 14, 2025

@sinkap rootfs is not used by BPF CI (anymore). If xxd is a requirement for relevant BPF selftests, you need to add the package here: https://github.com/libbpf/ci/blob/main/run-vmtest/install-dependencies.sh#L11-L12

I know it's confusing, sorry :/

@theihor theihor requested review from theihor and removed request for chantra July 14, 2025 18:08
Copy link
Contributor

@theihor theihor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just looked at your patch: https://lore.kernel.org/bpf/20250606232914.317094-13-kpsingh@kernel.org/

So xxd is required at selftests build time, not run time. Which means that the proper place for this dependency is https://github.com/libbpf/ci/blob/main/setup-build-env/install_packages.sh#L15-L20

I wonder if there is a way to generate that header without an additional dependency?

@sinkap
Copy link
Contributor Author

sinkap commented Jul 14, 2025

I did not find an easy way to generate the header without xxd, it will be ugly and fragile, let's just use xxd.

I sent #193

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