diff mbox series

[2/4] package/bpftool: allow building on MIPS architecture

Message ID 20260828-xdp-tools-tleb-v1-2-463c25b5a99b@bootlin.com
State New
Headers show
Series Add xdp-tools package | expand

Commit Message

Théo Lebrun Aug. 28, 2026, 4:46 p.m. UTC
libbpf supports MIPS since commit c86cb27 ("bpf, mips: Fix build errors
about __NR_bpf undeclared", 2021-11-25). Unblock the build by a setting
BR2_PACKAGE_BPFTOOL_ARCH_SUPPORTS=y if a BR2_mips* entry is set.

Built and tested on BR2_mips_64r6.

Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
---
 package/bpftool/Config.in | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/package/bpftool/Config.in b/package/bpftool/Config.in
index 9500baf11e..55b31c6174 100644
--- a/package/bpftool/Config.in
+++ b/package/bpftool/Config.in
@@ -8,6 +8,7 @@  config BR2_PACKAGE_BPFTOOL_ARCH_SUPPORTS
 	default y if BR2_riscv
 	default y if BR2_sparc || BR2_sparc64
 	default y if BR2_s390x
+	default y if BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el
 
 config BR2_PACKAGE_BPFTOOL
 	bool "bpftool"