[Buildroot] [git commit branch/2024.11.x] package/linux-tools: selftests: Add path containing BPF binary to _BIN_ARCH_EXCLUDE

Arnout Vandecappelle arnout at rnout.be
Fri Apr 11 10:42:24 UTC 2025


commit: https://git.buildroot.net/buildroot/commit/?id=79494bba2936434e047da73aec6754b4fdb9cbd0
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2024.11.x

Enabling BR2_PACKAGE_LINUX_TOOLS_SELFTESTS (on rock5b_defconfig,
which uses kernel 6.12 at the time of writing), results in:

make[1]: Leaving directory '/br/output/build/linux-endpoint-test/tools/testing/selftests'
ERROR: architecture for "/usr/lib/kselftests/tc-testing/action-ebpf" is "Linux BPF", should be "AArch64"
make: *** [package/pkg-generic.mk:402: /br/output/build/linux-tools/.stamp_installed] Error 1

To solve this, add /usr/lib/kselftests/tc-testing/ to
LINUX_TOOLS_BIN_ARCH_EXCLUDE.

Signed-off-by: Niklas Cassel <cassel at kernel.org>
Acked-by: Florian Fainelli <f.fainelli at gmail.com>
Signed-off-by: Julien Olivain <ju.o at free.fr>
(cherry picked from commit 3a03cb2ad61e78544e5aa1ee64790e356c692713)
Signed-off-by: Thomas Perale <thomas.perale at mind.be>
---
 package/linux-tools/linux-tool-selftests.mk.in | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/package/linux-tools/linux-tool-selftests.mk.in b/package/linux-tools/linux-tool-selftests.mk.in
index 0bcc47af0a..db7e4fa1a3 100644
--- a/package/linux-tools/linux-tool-selftests.mk.in
+++ b/package/linux-tools/linux-tool-selftests.mk.in
@@ -26,6 +26,9 @@ SELFTESTS_MAKE_FLAGS = \
 	ARCH=$(SELFTESTS_ARCH) \
 	KHDR_DIR=$(LINUX_DIR)/usr/include
 
+LINUX_TOOLS_BIN_ARCH_EXCLUDE += \
+	/usr/lib/kselftests/tc-testing/
+
 # O must be redefined here to overwrite the one used by Buildroot for
 # out of tree build. We build the selftests in $(LINUX_DIR)/tools/selftests and
 # not just $(LINUX_DIR) so that it isn't built in the root directory of the kernel


More information about the buildroot mailing list