]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests/bpf: Remove xxd util dependency
authorMykyta Yatsenko <yatsenko@meta.com>
Wed, 28 Jan 2026 19:05:51 +0000 (19:05 +0000)
committerAndrii Nakryiko <andrii@kernel.org>
Wed, 28 Jan 2026 21:23:51 +0000 (13:23 -0800)
commitb640d556a2b354863a9962747a01f67f31cbf4d8
tree7c1bd8448887f39f20790dbeed7149b55be904f6
parentba225407f80ee28f42301002bd5fda8fffd85615
selftests/bpf: Remove xxd util dependency

The verification signature header generation requires converting a
binary certificate to a C array. Previously this only worked with
xxd (part of vim-common package).
As xxd may not be available on some systems building selftests, it makes
sense to substitute it with more common utils: hexdump, wc, sed to
generate equivalent C array output.

Tested by generating header with both xxd and hexdump and comparing
them.

Signed-off-by: Mykyta Yatsenko <yatsenko@meta.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Tested-by: Alan Maguire <alan.maguire@oracle.com>
Link: https://lore.kernel.org/bpf/20260128190552.242335-1-mykyta.yatsenko5@gmail.com
tools/testing/selftests/bpf/.gitignore
tools/testing/selftests/bpf/Makefile