]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests/bpf: Allow selftests to build with older xxd
authorAlan Maguire <alan.maguire@oracle.com>
Thu, 20 Nov 2025 08:47:54 +0000 (08:47 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:03:16 +0000 (14:03 +0100)
commit3b796d3f16c108fb287f7eb5f4eb66c8770898e7
tree333c82587ba04a91868d69f0b417abdcc4007b38
parent489a8f559fafe6a72f44aeff81de44259d5d37fe
selftests/bpf: Allow selftests to build with older xxd

[ Upstream commit ad93ba02678eda5fc8e259cf4b52997e6fa570cf ]

Currently selftests require xxd with the "-n <name>" option
which allows the user to specify a name not derived from
the input object path.  Instead of relying on this newer
feature, older xxd can be used if we link our desired name
("test_progs_verification_cert") to the input object.

Many distros ship xxd in vim-common package and do not have
the latest xxd with -n support.

Fixes: b720903e2b14d ("selftests/bpf: Enable signature verification for some lskel tests")
Signed-off-by: Alan Maguire <alan.maguire@oracle.com>
Link: https://lore.kernel.org/r/20251120084754.640405-3-alan.maguire@oracle.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/bpf/.gitignore
tools/testing/selftests/bpf/Makefile