diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-02-06 14:48:07 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-02-10 13:03:57 +0000 |
| commit | 89ce67d8e41cc50a9b9ee225c054729f9cee7cdc (patch) | |
| tree | 8bb5d2ed19e0c205289008d2bce9d6a64d24eb95 /meta/recipes-extended/ltp | |
| parent | 6d0cf6477c1703d60befe13f293afd0a602553a1 (diff) | |
| download | poky-89ce67d8e41cc50a9b9ee225c054729f9cee7cdc.tar.gz | |
recipes: Drop ld-is-gold support
Gold hasn't seen development in some time and is being dropped from binutils
releases. Drop the small number of special cases for it we were carrying.
This patch also turns off gold in the binutils recipe.
(From OE-Core rev: a4addb9ab63011e7c604fc5daff95559e7d214e7)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/ltp')
| -rw-r--r-- | meta/recipes-extended/ltp/ltp_20240930.bb | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/meta/recipes-extended/ltp/ltp_20240930.bb b/meta/recipes-extended/ltp/ltp_20240930.bb index 3fe8772ea7..0760170c7b 100644 --- a/meta/recipes-extended/ltp/ltp_20240930.bb +++ b/meta/recipes-extended/ltp/ltp_20240930.bb | |||
| @@ -36,19 +36,18 @@ S = "${WORKDIR}/git" | |||
| 36 | 36 | ||
| 37 | inherit autotools-brokensep pkgconfig | 37 | inherit autotools-brokensep pkgconfig |
| 38 | 38 | ||
| 39 | # Version 20220527 added KVM test infrastructure which currently fails to build with gold due to | 39 | # Version 20220527 added KVM test infrastructure which currently fails to build with lld due to |
| 40 | # SORT_NONE in linker script which isn't supported by gold: | 40 | # SORT_NONE in linker script which isn't supported by gold: |
| 41 | # https://sourceware.org/bugzilla/show_bug.cgi?id=18097 | 41 | # https://sourceware.org/bugzilla/show_bug.cgi?id=18097 |
| 42 | # https://github.com/linux-test-project/ltp/commit/3fce2064b54843218d085aae326c8f7ecf3a8c41#diff-39268f0855c634ca48c8993fcd2c95b12a65b79e8d9fa5ccd6b0f5a8785c0dd6R36 | 42 | # https://github.com/linux-test-project/ltp/commit/3fce2064b54843218d085aae326c8f7ecf3a8c41#diff-39268f0855c634ca48c8993fcd2c95b12a65b79e8d9fa5ccd6b0f5a8785c0dd6R36 |
| 43 | LDFLAGS += "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', '-fuse-ld=bfd', '', d)}" | ||
| 44 | LDFLAGS += "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', '-fuse-ld=bfd', '', d)}" | 43 | LDFLAGS += "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', '-fuse-ld=bfd', '', d)}" |
| 45 | 44 | ||
| 46 | # After 0002-kvm-use-LD-instead-of-hardcoding-ld.patch | 45 | # After 0002-kvm-use-LD-instead-of-hardcoding-ld.patch |
| 47 | # https://github.com/linux-test-project/ltp/commit/f94e0ef3b7280f886384703ef9019aaf2f2dfebb | 46 | # https://github.com/linux-test-project/ltp/commit/f94e0ef3b7280f886384703ef9019aaf2f2dfebb |
| 48 | # it fails with gold also a bit later when trying to use *-payload.bin | 47 | # it fails with lld also a bit later when trying to use *-payload.bin |
| 49 | # http://errors.yoctoproject.org/Errors/Details/663094/ | 48 | # http://errors.yoctoproject.org/Errors/Details/663094/ |
| 50 | # work around this by forcing .bfd linked in LD when ld-is-gold is in DISTRO_FEATURES | 49 | # work around this by forcing .bfd linked in LD when ld-is-lld is in DISTRO_FEATURES |
| 51 | KVM_LD = "${@bb.utils.contains_any('DISTRO_FEATURES', 'ld-is-gold ld-is-lld', '${HOST_PREFIX}ld.bfd${TOOLCHAIN_OPTIONS} ${HOST_LD_ARCH}', '${LD}', d)}" | 50 | KVM_LD = "${@bb.utils.contains_any('DISTRO_FEATURES', 'ld-is-lld', '${HOST_PREFIX}ld.bfd${TOOLCHAIN_OPTIONS} ${HOST_LD_ARCH}', '${LD}', d)}" |
| 52 | 51 | ||
| 53 | TARGET_CC_ARCH += "${LDFLAGS}" | 52 | TARGET_CC_ARCH += "${LDFLAGS}" |
| 54 | 53 | ||
