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-bsp/u-boot | |
| 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-bsp/u-boot')
| -rw-r--r-- | meta/recipes-bsp/u-boot/u-boot.inc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/meta/recipes-bsp/u-boot/u-boot.inc b/meta/recipes-bsp/u-boot/u-boot.inc index 3270c22e8d..9464736b84 100644 --- a/meta/recipes-bsp/u-boot/u-boot.inc +++ b/meta/recipes-bsp/u-boot/u-boot.inc | |||
| @@ -10,7 +10,7 @@ inherit uboot-config uboot-extlinux-config uboot-sign deploy python3native kerne | |||
| 10 | DEPENDS += "swig-native" | 10 | DEPENDS += "swig-native" |
| 11 | 11 | ||
| 12 | EXTRA_OEMAKE = 'CROSS_COMPILE=${TARGET_PREFIX} V=1' | 12 | EXTRA_OEMAKE = 'CROSS_COMPILE=${TARGET_PREFIX} V=1' |
| 13 | EXTRA_OEMAKE += 'CC="${TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS} ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)} ${DEBUG_PREFIX_MAP}"' | 13 | EXTRA_OEMAKE += 'CC="${TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS} ${DEBUG_PREFIX_MAP}"' |
| 14 | EXTRA_OEMAKE += 'HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}"' | 14 | EXTRA_OEMAKE += 'HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}"' |
| 15 | EXTRA_OEMAKE += 'STAGING_INCDIR=${STAGING_INCDIR_NATIVE} STAGING_LIBDIR=${STAGING_LIBDIR_NATIVE}' | 15 | EXTRA_OEMAKE += 'STAGING_INCDIR=${STAGING_INCDIR_NATIVE} STAGING_LIBDIR=${STAGING_LIBDIR_NATIVE}' |
| 16 | 16 | ||
| @@ -35,10 +35,6 @@ require u-boot-configure.inc | |||
| 35 | 35 | ||
| 36 | UBOOT_ARCH_DIR = "${@'arm' if d.getVar('UBOOT_ARCH').startswith('arm') else d.getVar('UBOOT_ARCH')}" | 36 | UBOOT_ARCH_DIR = "${@'arm' if d.getVar('UBOOT_ARCH').startswith('arm') else d.getVar('UBOOT_ARCH')}" |
| 37 | do_compile () { | 37 | do_compile () { |
| 38 | if [ "${@bb.utils.filter('DISTRO_FEATURES', 'ld-is-gold', d)}" ]; then | ||
| 39 | sed -i 's/$(CROSS_COMPILE)ld$/$(CROSS_COMPILE)ld.bfd/g' ${S}/config.mk | ||
| 40 | fi | ||
| 41 | |||
| 42 | unset LDFLAGS | 38 | unset LDFLAGS |
| 43 | unset CFLAGS | 39 | unset CFLAGS |
| 44 | unset CPPFLAGS | 40 | unset CPPFLAGS |
