Skip to content

RFC Use host-libbpf for host-pahole.

Francis Laniel buildroot 1 version Applied

Status from this message: Applied both to master, thanks. In the second commit, I also reworded the

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2package/libbpf: build for hostpackage/libbpf/libbpf.mk+25 -01 reply
2/2package/pahole: use commit 73383b3a39afpackage/pahole/pahole.hash package/pahole/pahole.mk+8 -80 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Buildroot] [RFC PATCH v1 0/2] Use host-libbpf for host-pahole.

Hi.

Following a failed build involving libbpf, Thomas Pettazzoni suggested me to remove git submodule from host-pahole to build it the "buildroot way".

So, in this contribution, I first added host recipe to libbpf. Then, I removed git submobule used by host-pahole to get libbpf to instead use host-libbpf.

I was able to build and run a qemu image:
Welcome to Buildroot
buildroot login: root

# zcat /proc/config.gz | grep BTF
CONFIG_DEBUG_INFO_BTF=y
CONFIG_PAHOLE_HAS_SPLIT_BTF=y
CONFIG_DEBUG_INFO_BTF_MODULES=y

Nonetheless, I am not really happy with this contribution as I had to add a bad tweak removing a header file installed by host-libbpf to avoid a kernel build error:

So, I marked this contribution as RFC to get your opinions about it.

Francis Laniel (2):
package/libbpf: build for host
package/pahole: use commit 73383b3a39af

 linux/linux.mk             | 11 +++++++++++
 package/libbpf/libbpf.mk   |  7 +++++++
 package/pahole/pahole.hash |  2 +-
 package/pahole/pahole.mk   | 14 +++++++-------
 4 files changed, 26 insertions(+), 8 deletions(-)

Best regards and thank you in advance.

Signature · 6 lines
2.25.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot