Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 0/4] Add xdp-tools package
@ 2026-08-28 16:46 Théo Lebrun via buildroot
  2026-08-28 16:46 ` [Buildroot] [PATCH 1/4] package/bpftool: disable feature auto-detection for host build Théo Lebrun via buildroot
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Théo Lebrun via buildroot @ 2026-08-28 16:46 UTC (permalink / raw)
  To: buildroot
  Cc: James Hilliard, Daniel Lang, Joseph Kogut, Romain Naour,
	Valentin Korenblit, Benoît Monin, Gregory CLEMENT,
	Jimmy Wesolowski, Tawfik Bayouk, Thomas Petazzoni,
	Vladimir Kondratiev, Théo Lebrun

This is a new take on the series adding an xdp-tools package by Jimmy
DW [0]. Here we stick to host-llvm for compiling BPF programs instead
of host-gcc.

See this series as a "everything that needs to be done to get working
xdp-tools on a MIPS EyeQ platform".

 - First patch is a fix in bpftool. I hesitated sending it separately.

 - Second patch is about allowing bpftool to be built on MIPS. It was
   probably restrained out of precaution. I can testify that it works.

 - Third patch is about adding a config entry to host-llvm for when it
   should build the BPF backend. Currently, BR2_PACKAGE_LLVM_BPF=y
   implies host-llvm has the BPF backend; this behavior is odd.

   Instead we add an option that packages needing a BPF compiler should
   enable. Note that we support building host-llvm with BPF as the sole
   target.

 - Finally we add the xdp-tools package. It comes with two options: one
   for the package, one for building & installing the tests. We need
   three patches on top of upstream.

About those xdp-tools patches, they'll have to be sent upstream. I'll
also send an upstream patch to simplify disabling tests; we manage to
disable them without a patch but it's a workaround. I wanted feedback
on the series and the direction it is heading.

Thanks!
Théo

[0]: https://lore.kernel.org/buildroot/DB9PR09MB498763B6FA5A72213CEAF2A6F69AA@DB9PR09MB4987.eurprd09.prod.outlook.com/

Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
---
Théo Lebrun (4):
      package/bpftool: disable feature auto-detection for host build
      package/bpftool: allow building on MIPS architecture
      package/llvm: add option to build the BPF backend in host-llvm
      package/xdp-tools: new package

 DEVELOPERS                                         |   3 +
 package/Config.in                                  |   1 +
 package/Config.in.host                             |   1 +
 package/bpftool/Config.in                          |   1 +
 package/bpftool/bpftool.mk                         |   5 +-
 package/llvm-project/llvm/Config.in.host           |  10 ++
 package/llvm-project/llvm/llvm.mk                  |  12 ++-
 .../0001-lib-build-BPF-objects-freestanding.patch  | 116 +++++++++++++++++++++
 .../0002-lib-testing-support-busybox-mktemp.patch  |  64 ++++++++++++
 package/xdp-tools/Config.in                        |  55 ++++++++++
 ...d-BPF-objects-with-assembler-rather-than-.patch |  59 +++++++++++
 package/xdp-tools/no-tests/Makefile                |   3 +
 package/xdp-tools/xdp-tools.hash                   |   8 ++
 package/xdp-tools/xdp-tools.mk                     |  79 ++++++++++++++
 14 files changed, 415 insertions(+), 2 deletions(-)
---
base-commit: e313a2d2590af689eb1f79e55b5a488154400da1
change-id: 20260828-xdp-tools-tleb-054c4c8c4cfb

Best regards,
--  
Théo Lebrun <theo.lebrun@bootlin.com>

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2026-11-26 15:41 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-28 16:46 [Buildroot] [PATCH 0/4] Add xdp-tools package Théo Lebrun via buildroot
2026-08-28 16:46 ` [Buildroot] [PATCH 1/4] package/bpftool: disable feature auto-detection for host build Théo Lebrun via buildroot
2026-10-18 20:42   ` Thomas Petazzoni via buildroot
2026-10-23 13:19   ` Raphaël Mélotte via buildroot
2026-08-28 16:46 ` [Buildroot] [PATCH 2/4] package/bpftool: allow building on MIPS architecture Théo Lebrun via buildroot
2026-10-18 20:53   ` Thomas Petazzoni via buildroot
2026-08-28 16:46 ` [Buildroot] [PATCH 3/4] package/llvm: add option to build the BPF backend in host-llvm Théo Lebrun via buildroot
2026-08-28 16:46 ` [Buildroot] [PATCH 4/4] package/xdp-tools: new package Théo Lebrun via buildroot
2026-09-03 14:59   ` [Buildroot] [4/4] " dowan gullient via buildroot
2026-11-26 15:41     ` Théo Lebrun via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox