]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
linux-yocto/ppc: add elfutils-native to DEPENDS
authorBruce Ashfield <bruce.ashfield@gmail.com>
Mon, 10 Jul 2023 16:16:27 +0000 (12:16 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 12 Jul 2023 15:50:39 +0000 (16:50 +0100)
powerpc joins x86 and ARM requiring elfutils-native in some
configurations.

We already have this dependency in the dev kernel and in devsrc, so we
add it to linux-yocto.inc to ensure that all reference kernels pick up
the requirement.

Without this, objtools fails to build as follows:

   kernel-source/tools/objtool/include/objtool/elf.h:10:10: fatal error: gelf.h: No such file or directory

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-kernel/linux/linux-yocto.inc

index 04a8105e17605c7c283880d2379855d59099bff5..0cc303c009445eeb4ebdee26a7f3a8cebfc40809 100644 (file)
@@ -62,7 +62,7 @@ KERNEL_FEATURES:append:qemuall=" features/kernel-sample/kernel-sample.scc"
 KERNEL_DEBUG ?= ""
 # These used to be version specific, but are now common dependencies.  New
 # tools / dependencies will continue to be added in version specific recipes.
-DEPENDS += '${@bb.utils.contains_any("ARCH", [ "x86", "arm64" ], "elfutils-native", "", d)}'
+DEPENDS += '${@bb.utils.contains_any("ARCH", [ "x86", "arm64", "powerpc" ], "elfutils-native", "", d)}'
 DEPENDS += "openssl-native util-linux-native"
 DEPENDS += "gmp-native libmpc-native"
 DEPENDS += '${@bb.utils.contains("KERNEL_DEBUG", "True", "pahole-native", "", d)}'