diff options
author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2021-08-17 11:27:32 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-08-26 08:32:14 +0100 |
commit | 994cc9c4780bd0339961b3dc368f4e1c469165ce (patch) | |
tree | 6f010c4d950c8a62010a58e6960915d1dfc025e2 | |
parent | 6c81964f15b2e0e367459dca6cf893a6cf25267c (diff) | |
download | poky-994cc9c4780bd0339961b3dc368f4e1c469165ce.tar.gz |
kernel-devsrc: fix 5.14+ objtool compilation
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.
(From OE-Core rev: 6d95dc6f2184b4d024fe83acf723ffd24caa4689)
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 03ccc234386f753e1b0129ec557e67bcd04cc69e)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-kernel/linux/kernel-devsrc.bb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-kernel/linux/kernel-devsrc.bb b/meta/recipes-kernel/linux/kernel-devsrc.bb index 4897084aab..a5eba7c03a 100644 --- a/meta/recipes-kernel/linux/kernel-devsrc.bb +++ b/meta/recipes-kernel/linux/kernel-devsrc.bb | |||
@@ -320,7 +320,7 @@ RDEPENDS_${PN} = "bc python3 flex bison ${TCLIBC}-utils" | |||
320 | # 4.15+ needs these next two RDEPENDS | 320 | # 4.15+ needs these next two RDEPENDS |
321 | RDEPENDS_${PN} += "openssl-dev util-linux" | 321 | RDEPENDS_${PN} += "openssl-dev util-linux" |
322 | # and x86 needs a bit more for 4.15+ | 322 | # and x86 needs a bit more for 4.15+ |
323 | RDEPENDS_${PN} += "${@bb.utils.contains('ARCH', 'x86', 'elfutils', '', d)}" | 323 | RDEPENDS_${PN} += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-dev', '', d)}" |
324 | # 5.8+ needs gcc-plugins libmpc-dev | 324 | # 5.8+ needs gcc-plugins libmpc-dev |
325 | RDEPENDS_${PN} += "gcc-plugins libmpc-dev" | 325 | RDEPENDS_${PN} += "gcc-plugins libmpc-dev" |
326 | # 5.13+ needs awk for arm64 | 326 | # 5.13+ needs awk for arm64 |