]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
kernel/kernel-devsrc: powerpc: add elfutils dependency
authorBruce Ashfield <bruce.ashfield@gmail.com>
Fri, 24 Mar 2023 15:08:48 +0000 (11:08 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 26 Mar 2023 17:48:56 +0000 (18:48 +0100)
When working on 6.3+ kernel support powerpc started to fail when
doing on target kerne module builds, and in some cases when building
the kernel itself.

This was due to crtsavres requiring objtool to build, which was
missing required development headers.

So in a similar manner to x86, we add elfutils as an arch specific
dependency in these recipes.

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

index ab965272d9309a558293d6792f4d8eb72e4ab72e..b4ea5f756aef5f923cc74f3415fed281546f190b 100644 (file)
@@ -382,6 +382,8 @@ RDEPENDS:${PN} = "bc python3 flex bison ${TCLIBC}-utils"
 RDEPENDS:${PN} += "openssl-dev util-linux"
 # and x86 needs a bit more for 4.15+
 RDEPENDS:${PN} += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-dev', '', d)}"
+# powerpc needs elfutils on 6.3+
+RDEPENDS:${PN} += "${@bb.utils.contains('ARCH', 'powerpc', 'elfutils-dev', '', d)}"
 # 5.8+ needs gcc-plugins libmpc-dev
 RDEPENDS:${PN} += "gcc-plugins libmpc-dev"
 # 5.13+ needs awk for arm64
index 4f3d4a5c3cd521af4311df49665e6a51a48bd992..52cd6f5f28f2e4af120ea02e42a29f74610b391d 100644 (file)
@@ -35,6 +35,7 @@ PV = "${LINUX_VERSION}+git${SRCPV}"
 LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
 
 DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}"
+DEPENDS += "${@bb.utils.contains('ARCH', 'powerpc', 'elfutils-native', '', d)}"
 DEPENDS += "openssl-native util-linux-native"
 DEPENDS += "gmp-native libmpc-native"