Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
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] [RFC PATCH v1 2/2] linux: Add host-pahole as linux dependencies if selected by user.
Date: Tue, 21 Dec 2021 15:54:29 +0100	[thread overview]
Message-ID: <20211221145428.43829-3-flaniel@linux.microsoft.com> (raw)
In-Reply-To: <20211221145428.43829-1-flaniel@linux.microsoft.com>

If user set BR2_PACKAGE_HOST_PAHOLE, we add host-pahole to linux dependencies in
case the user also wants to compile the kernel with CONFIG_DEBUG_BTF_INFO which
relies on pahole to generate BTF information used by CO-RE BPF tools.

Signed-off-by: Francis Laniel <flaniel@linux.microsoft.com>
---
 linux/linux.mk                | 6 ++++++
 package/pahole/Config.in.host | 2 ++
 2 files changed, 8 insertions(+)

diff --git a/linux/linux.mk b/linux/linux.mk
index 61fdc0c76c..057d898c86 100644
--- a/linux/linux.mk
+++ b/linux/linux.mk
@@ -120,6 +120,12 @@ ifeq ($(BR2_PACKAGE_HOST_UBOOT_TOOLS),y)
 LINUX_DEPENDENCIES += host-uboot-tools
 endif
 
+# If host-pahole is selected by the user, assume it is needed to create a custom
+# kernel with CONFIG_DEBUG_INFO_BTF.
+ifeq ($(BR2_PACKAGE_HOST_PAHOLE),y)
+LINUX_DEPENDENCIES += host-pahole
+endif
+
 ifneq ($(ARCH_XTENSA_OVERLAY_FILE),)
 define LINUX_XTENSA_OVERLAY_EXTRACT
 	$(call arch-xtensa-overlay-extract,$(@D),linux)
diff --git a/package/pahole/Config.in.host b/package/pahole/Config.in.host
index e427629632..521874961b 100644
--- a/package/pahole/Config.in.host
+++ b/package/pahole/Config.in.host
@@ -3,4 +3,6 @@ config BR2_PACKAGE_HOST_PAHOLE
 	help
 	  Pahole and other DWARF utils.
 
+	  Select this if you want to build a kernel with CONFIG_DEBUG_INFO_BTF set.
+
 	  https://git.kernel.org/pub/scm/devel/pahole/pahole.git
-- 
2.30.2

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

  parent reply	other threads:[~2021-12-21 15:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-21 14:54 [Buildroot] [RFC PATCH v1 0/2] Enable BTF headers for Linux kernel Francis Laniel
2021-12-21 14:54 ` [Buildroot] [RFC PATCH v1 1/2] package/pahole: new host package Francis Laniel
2021-12-21 21:44   ` Arnout Vandecappelle
2021-12-22 17:32     ` Francis Laniel
2021-12-21 14:54 ` Francis Laniel [this message]
2021-12-21 21:58   ` [Buildroot] [RFC PATCH v1 2/2] linux: Add host-pahole as linux dependencies if selected by user Arnout Vandecappelle
2021-12-22 17:33     ` 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=20211221145428.43829-3-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