[Buildroot] [PATCH 2/2] configs/qemu_ppc64*defconfig: add missing libelf dependency
Romain Naour
romain.naour at smile.fr
Tue Apr 30 21:43:03 UTC 2024
Le 24/04/2024 à 14:38, Romain Naour a écrit :
> While building the kernel tools, libelf header is missing:
>
> [...]tools/objtool/include/objtool/elf.h:10:10: fatal error: gelf.h: No such file or directory
> 10 | #include <gelf.h>
>
> Select BR2_LINUX_KERNEL_NEEDS_HOST_LIBELF to build host-libelf.
>
> Fixes:
> https://gitlab.com/buildroot.org/buildroot/-/jobs/6664587290 (qemu_ppc64le_powernv8_defconfig)
> https://gitlab.com/buildroot.org/buildroot/-/jobs/6655119951 (qemu_ppc64le_pseries_defconfig)
> https://gitlab.com/buildroot.org/buildroot/-/jobs/6655119946 (qemu_ppc64_pseries_defconfig)
>
> Signed-off-by: Romain Naour <romain.naour at smile.fr>
> ---
> configs/qemu_ppc64_pseries_defconfig | 1 +
> configs/qemu_ppc64le_powernv8_defconfig | 1 +
> configs/qemu_ppc64le_pseries_defconfig | 1 +
> 3 files changed, 3 insertions(+)
>
> diff --git a/configs/qemu_ppc64_pseries_defconfig b/configs/qemu_ppc64_pseries_defconfig
> index 8c58fec24f..350380578a 100644
> --- a/configs/qemu_ppc64_pseries_defconfig
> +++ b/configs/qemu_ppc64_pseries_defconfig
> @@ -23,6 +23,7 @@ BR2_LINUX_KERNEL_CUSTOM_VERSION=y
> BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.6.18"
> BR2_LINUX_KERNEL_DEFCONFIG="pseries"
> BR2_LINUX_KERNEL_VMLINUX=y
> +BR2_LINUX_KERNEL_NEEDS_HOST_LIBELF=y
>
> # host-qemu for gitlab testing
> BR2_PACKAGE_HOST_QEMU=y
> diff --git a/configs/qemu_ppc64le_powernv8_defconfig b/configs/qemu_ppc64le_powernv8_defconfig
> index 23ad5772c2..fd8936a1fa 100644
> --- a/configs/qemu_ppc64le_powernv8_defconfig
> +++ b/configs/qemu_ppc64le_powernv8_defconfig
> @@ -23,6 +23,7 @@ BR2_LINUX_KERNEL_CUSTOM_VERSION=y
> BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.6.18"
> BR2_LINUX_KERNEL_DEFCONFIG="powernv"
> BR2_LINUX_KERNEL_VMLINUX=y
> +BR2_LINUX_KERNEL_NEEDS_HOST_LIBELF=y
>
> # host-qemu for gitlab testing
> BR2_PACKAGE_HOST_QEMU=y
> diff --git a/configs/qemu_ppc64le_pseries_defconfig b/configs/qemu_ppc64le_pseries_defconfig
> index 207e5f5b40..ebc3b7a6fd 100644
> --- a/configs/qemu_ppc64le_pseries_defconfig
> +++ b/configs/qemu_ppc64le_pseries_defconfig
> @@ -23,6 +23,7 @@ BR2_LINUX_KERNEL_CUSTOM_VERSION=y
> BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.6.18"
> BR2_LINUX_KERNEL_DEFCONFIG="pseries_le"
> BR2_LINUX_KERNEL_VMLINUX=y
> +BR2_LINUX_KERNEL_NEEDS_HOST_LIBELF=y
>
> # host-qemu for gitlab testing
> BR2_PACKAGE_HOST_QEMU=y
Applied to master, thanks.
Best regards,
Romain
More information about the buildroot
mailing list