Message ID | 20230628033910.2283445-1-srinuvasan_a@mentor.com |
---|---|
State | Superseded, archived |
Headers | show |
Series | linux: add "dwarves" to KBUILD_DEPENDS | expand |
Am Wed, 28 Jun 2023 09:09:10 +0530 schrieb Srinuvasan Arjunan <srinuvasan_a@mentor.com>: > From: Srinuvasan A <srinuvasan.a@siemens.com> > > When we build custom 5.10.175-cip29 kernel > in one of the downstream layer we faced below error: > > `BTF: .tmp_vmlinux.btf: pahole (pahole) is not available > Failed to generate BTF for vmlinux > Try to disable CONFIG_DEBUG_INFO_BTF` > > hence install "dwarves" package as a dependency in sbuild-chroot > when we build custom kernels. This commit message is rather specific and could be more generic, but i think the patch itself is fine. Stock debian kernels have CONFIG_DEBUG_INFO_BTF enabled so it is kind of likely that pahole will be needed at build time. Henning > Signed-off-by: Srinuvasan A <srinuvasan.a@siemens.com> > --- > meta/recipes-kernel/linux/linux-custom.inc | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/meta/recipes-kernel/linux/linux-custom.inc > b/meta/recipes-kernel/linux/linux-custom.inc index 1404ab0..f255d68 > 100644 --- a/meta/recipes-kernel/linux/linux-custom.inc > +++ b/meta/recipes-kernel/linux/linux-custom.inc > @@ -21,6 +21,7 @@ KBUILD_DEPENDS ?= "build-essential:native, \ > bc, \ > bison, \ > cpio, \ > + dwarves, \ > flex, \ > git, \ > kmod, \
diff --git a/meta/recipes-kernel/linux/linux-custom.inc b/meta/recipes-kernel/linux/linux-custom.inc index 1404ab0..f255d68 100644 --- a/meta/recipes-kernel/linux/linux-custom.inc +++ b/meta/recipes-kernel/linux/linux-custom.inc @@ -21,6 +21,7 @@ KBUILD_DEPENDS ?= "build-essential:native, \ bc, \ bison, \ cpio, \ + dwarves, \ flex, \ git, \ kmod, \