linux: add "dwarves" to KBUILD_DEPENDS

Message ID 20230704100032.2646099-1-srinuvasan_a@mentor.com
State Accepted, archived
Headers show
Series linux: add "dwarves" to KBUILD_DEPENDS | expand

Commit Message

Srinuvasan Arjunan July 4, 2023, 10 a.m. UTC
From: Srinuvasan A <srinuvasan.a@siemens.com>

Stock debian kernels have CONFIG_DEBUG_INFO_BTF enabled so it is kind of
likely that pahole will be needed at build time.

hence install "dwarves" package as a dependency in sbuild-chroot
when we build custom kernels.

Signed-off-by: Srinuvasan A <srinuvasan.a@siemens.com>
---
 meta/recipes-kernel/linux/linux-custom.inc | 1 +
 1 file changed, 1 insertion(+)

Comments

Uladzimir Bely July 11, 2023, 6:39 a.m. UTC | #1
On Tue, 2023-07-04 at 15:30 +0530, Srinuvasan Arjunan wrote:
> From: Srinuvasan A <srinuvasan.a@siemens.com>
> 
> Stock debian kernels have CONFIG_DEBUG_INFO_BTF enabled so it is kind
> of
> likely that pahole will be needed at build time.
> 
> hence install "dwarves" package as a dependency in sbuild-chroot
> when we build custom kernels.
> 
> 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, \
> -- 
> 2.34.1
> 

Applied to next, thanks.

Patch

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, \