summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@gmail.com>2023-03-24 11:08:48 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-03-26 18:50:17 +0100
commit0544310d60c5ab5783f04f4441156526b8e9e304 (patch)
tree5364a0431146ba65018b916084f8f945b9d13a5a /meta/recipes-kernel
parentc40a2eb5eb609f0741defd749c360c2c933e1dd6 (diff)
downloadpoky-0544310d60c5ab5783f04f4441156526b8e9e304.tar.gz
kernel/kernel-devsrc: powerpc: add elfutils dependency
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. (From OE-Core rev: 14b815b0beb6edc14b4fcc016201ade967875e28) Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel')
-rw-r--r--meta/recipes-kernel/linux/kernel-devsrc.bb2
-rw-r--r--meta/recipes-kernel/linux/linux-yocto-dev.bb1
2 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-kernel/linux/kernel-devsrc.bb b/meta/recipes-kernel/linux/kernel-devsrc.bb
index ab965272d9..b4ea5f756a 100644
--- a/meta/recipes-kernel/linux/kernel-devsrc.bb
+++ b/meta/recipes-kernel/linux/kernel-devsrc.bb
@@ -382,6 +382,8 @@ RDEPENDS:${PN} = "bc python3 flex bison ${TCLIBC}-utils"
382RDEPENDS:${PN} += "openssl-dev util-linux" 382RDEPENDS:${PN} += "openssl-dev util-linux"
383# and x86 needs a bit more for 4.15+ 383# and x86 needs a bit more for 4.15+
384RDEPENDS:${PN} += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-dev', '', d)}" 384RDEPENDS:${PN} += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-dev', '', d)}"
385# powerpc needs elfutils on 6.3+
386RDEPENDS:${PN} += "${@bb.utils.contains('ARCH', 'powerpc', 'elfutils-dev', '', d)}"
385# 5.8+ needs gcc-plugins libmpc-dev 387# 5.8+ needs gcc-plugins libmpc-dev
386RDEPENDS:${PN} += "gcc-plugins libmpc-dev" 388RDEPENDS:${PN} += "gcc-plugins libmpc-dev"
387# 5.13+ needs awk for arm64 389# 5.13+ needs awk for arm64
diff --git a/meta/recipes-kernel/linux/linux-yocto-dev.bb b/meta/recipes-kernel/linux/linux-yocto-dev.bb
index 4f3d4a5c3c..52cd6f5f28 100644
--- a/meta/recipes-kernel/linux/linux-yocto-dev.bb
+++ b/meta/recipes-kernel/linux/linux-yocto-dev.bb
@@ -35,6 +35,7 @@ PV = "${LINUX_VERSION}+git${SRCPV}"
35LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" 35LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
36 36
37DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}" 37DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}"
38DEPENDS += "${@bb.utils.contains('ARCH', 'powerpc', 'elfutils-native', '', d)}"
38DEPENDS += "openssl-native util-linux-native" 39DEPENDS += "openssl-native util-linux-native"
39DEPENDS += "gmp-native libmpc-native" 40DEPENDS += "gmp-native libmpc-native"
40 41