]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel-devsrc: fix 5.14+ objtool compilation
authorBruce Ashfield <bruce.ashfield@gmail.com>
Tue, 17 Aug 2021 15:27:32 +0000 (11:27 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 18 Aug 2021 16:00:16 +0000 (17:00 +0100)
In v5.14+, x86 requires not just elfutils, but the elf headers
on the target to build objtool (required for 'scripts parepare'),
so we tweak our RDEPENDS to ensure that the right headers are
on the target.

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

index 23de1a49177098dba0d56fc80cdbea079b4009ff..d39573965f06e0a9e93d21abfbf8ce3bbfec71af 100644 (file)
@@ -322,7 +322,7 @@ RDEPENDS:${PN} = "bc python3 flex bison ${TCLIBC}-utils"
 # 4.15+ needs these next two RDEPENDS
 RDEPENDS:${PN} += "openssl-dev util-linux"
 # and x86 needs a bit more for 4.15+
-RDEPENDS:${PN} += "${@bb.utils.contains('ARCH', 'x86', 'elfutils', '', d)}"
+RDEPENDS:${PN} += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-dev', '', d)}"
 # 5.8+ needs gcc-plugins libmpc-dev
 RDEPENDS:${PN} += "gcc-plugins libmpc-dev"
 # 5.13+ needs awk for arm64