mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-27 12:30:34 -09:00
linux: add BR2_LINUX_KERNEL_NEEDS_HOST_PAHOLE
CONFIG_DEBUG_BTF_INFO relies on pahole, so kernel DWARF are converted to BTF. If CONFIG_DEBUG_BTF_INFO is set and BR2_LINUX_KERNEL_NEEDS_HOST_PAHOLE not, an error message is shown and .config is not written. Signed-off-by: Francis Laniel <flaniel@linux.microsoft.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
ddba0ef6b1
commit
2da2f359db
@@ -470,6 +470,18 @@ config BR2_LINUX_KERNEL_NEEDS_HOST_LIBELF
|
||||
CONFIG_UNWINDER_ORC=y, please install libelf-dev,
|
||||
libelf-devel or elfutils-libelf-devel".
|
||||
|
||||
config BR2_LINUX_KERNEL_NEEDS_HOST_PAHOLE
|
||||
bool "Needs host pahole"
|
||||
help
|
||||
Some Linux kernel configuration options (such as
|
||||
CONFIG_DEBUG_INFO_BTF) require building a host program
|
||||
called pahole. Enabling this option will ensure host-pahole
|
||||
gets built before the Linux kernel.
|
||||
|
||||
Enable this option if you get a Linux kernel build failure
|
||||
such as "BTF: .tmp_vmlinux.btf: pahole (pahole) is not
|
||||
available".
|
||||
|
||||
# Linux extensions
|
||||
source "linux/Config.ext.in"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user