From: Otavio Salvador Date: Sun, 22 Apr 2012 18:01:32 +0000 (-0300) Subject: u-boot.inc: fix compilation when using 'gold' as linker X-Git-Tag: 2015-4~10870 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=2e79fcd673dadeab6358fe22d47c8534c14de03e;p=openembedded-core.git u-boot.inc: fix compilation when using 'gold' as linker Signed-off-by: Otavio Salvador --- diff --git a/meta/recipes-bsp/u-boot/u-boot.inc b/meta/recipes-bsp/u-boot/u-boot.inc index 0445c343d3..a13eddc829 100644 --- a/meta/recipes-bsp/u-boot/u-boot.inc +++ b/meta/recipes-bsp/u-boot/u-boot.inc @@ -36,6 +36,10 @@ SPL_IMAGE ?= "${SPL_BINARY}-${MACHINE}-${PV}-${PR}" SPL_SYMLINK ?= "${SPL_BINARY}-${MACHINE}" do_compile () { + if [ "${@base_contains('DISTRO_FEATURES', 'ld-is-gold', 'ld-is-gold', '', d)}" = "ld-is-gold" ] ; then + sed -i 's/$(CROSS_COMPILE)ld/$(CROSS_COMPILE)ld.bfd/g' config.mk + fi + unset LDFLAGS unset CFLAGS unset CPPFLAGS