From: Francis Laniel <flaniel@linux.microsoft.com>
To: buildroot@buildroot.org
Cc: Francis Laniel <flaniel@linux.microsoft.com>,
Samuel Martin <s.martin49@gmail.com>
Subject: [Buildroot] [PATCH v2 1/2] package/pahole: new host package
Date: Wed, 22 Dec 2021 18:49:04 +0100 [thread overview]
Message-ID: <20211222174905.71902-2-flaniel@linux.microsoft.com> (raw)
In-Reply-To: <20211222174905.71902-1-flaniel@linux.microsoft.com>
pahole is a tool used to show data structure embedded in debugging information
formats like DWARF.
It is notably needed by the Linux kernel to generate BPF Type Format (BTF)
information used by Compile Once - Run Everywhere (CO-RE) BPF tools.
To be built, pahole needs __LIB to be set to lib at stated in its README.
Signed-off-by: Francis Laniel <flaniel@linux.microsoft.com>
---
DEVELOPERS | 3 +++
package/Config.in.host | 1 +
package/pahole/Config.in.host | 6 ++++++
package/pahole/pahole.hash | 3 +++
package/pahole/pahole.mk | 18 ++++++++++++++++++
5 files changed, 31 insertions(+)
create mode 100644 package/pahole/Config.in.host
create mode 100644 package/pahole/pahole.hash
create mode 100644 package/pahole/pahole.mk
diff --git a/DEVELOPERS b/DEVELOPERS
index 64db6c51d0..70df957415 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -939,6 +939,9 @@ N: Floris Bos <bos@je-eigen-domein.nl>
F: package/ipmitool/
F: package/odhcploc/
+N: Francis Laniel <flaniel@linux.microsoft.com>
+F: package/pahole/
+
N: Francisco Gonzalez <gzmorell@gmail.com>
F: package/ser2net/
diff --git a/package/Config.in.host b/package/Config.in.host
index 6e5a5c5fc5..ae512c5643 100644
--- a/package/Config.in.host
+++ b/package/Config.in.host
@@ -60,6 +60,7 @@ menu "Host utilities"
source "package/omap-u-boot-utils/Config.in.host"
source "package/openocd/Config.in.host"
source "package/opkg-utils/Config.in.host"
+ source "package/pahole/Config.in.host"
source "package/parted/Config.in.host"
source "package/patchelf/Config.in.host"
source "package/pigz/Config.in.host"
diff --git a/package/pahole/Config.in.host b/package/pahole/Config.in.host
new file mode 100644
index 0000000000..e427629632
--- /dev/null
+++ b/package/pahole/Config.in.host
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_HOST_PAHOLE
+ bool "host pahole"
+ help
+ Pahole and other DWARF utils.
+
+ https://git.kernel.org/pub/scm/devel/pahole/pahole.git
diff --git a/package/pahole/pahole.hash b/package/pahole/pahole.hash
new file mode 100644
index 0000000000..9ee2ef9429
--- /dev/null
+++ b/package/pahole/pahole.hash
@@ -0,0 +1,3 @@
+# Locally computed
+sha256 cde85af68b368f50a913be387f94f6b43612a04af6c92387b4dcabb712a668fe pahole-v1.23-br1.tar.gz
+sha256 ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6 COPYING
diff --git a/package/pahole/pahole.mk b/package/pahole/pahole.mk
new file mode 100644
index 0000000000..26347cd8fd
--- /dev/null
+++ b/package/pahole/pahole.mk
@@ -0,0 +1,18 @@
+########################################################################
+#
+# pahole
+#
+########################################################################
+
+PAHOLE_VERSION = v1.23
+PAHOLE_SITE = git://git.kernel.org/pub/scm/devel/pahole/pahole.git
+PAHOLE_SITE_METHOD = git
+# pahole contains git submodule and relies on them to be built.
+PAHOLE_GIT_SUBMODULES = YES
+HOST_PAHOLE_DEPENDENCIES = host-elfutils
+# Defining __LIB is needed to build pahole.
+HOST_PAHOLE_CONF_OPTS = -D__LIB=lib
+PAHOLE_LICENSE = GPL-2.0
+PAHOLE_LICENSE_FILES = COPYING
+
+$(eval $(host-cmake-package))
--
2.30.2
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2021-12-22 17:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-22 17:49 [Buildroot] [PATCH v2 0/2] Enable BTF headers for Linux kernel Francis Laniel
2021-12-22 17:49 ` Francis Laniel [this message]
2022-01-13 21:40 ` [Buildroot] [PATCH v2 1/2] package/pahole: new host package Thomas Petazzoni
2021-12-22 17:49 ` [Buildroot] [PATCH v2 2/2] linux: add BR2_LINUX_KERNEL_NEEDS_HOST_PAHOLE Francis Laniel
2022-01-13 21:41 ` Thomas Petazzoni
2022-01-17 13:51 ` Francis Laniel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211222174905.71902-2-flaniel@linux.microsoft.com \
--to=flaniel@linux.microsoft.com \
--cc=buildroot@buildroot.org \
--cc=s.martin49@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox