[oe-commits] Otavio Salvador : u-boot.inc: fix compilation when using 'gold' as linker

git at git.openembedded.org git at git.openembedded.org
Tue Apr 24 10:57:59 UTC 2012


Module: openembedded-core.git
Branch: master-next
Commit: c671f68ed9ee4393b9509c2f6470220be7cc0575
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=c671f68ed9ee4393b9509c2f6470220be7cc0575

Author: Otavio Salvador <otavio at ossystems.com.br>
Date:   Sun Apr 22 15:01:32 2012 -0300

u-boot.inc: fix compilation when using 'gold' as linker

Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>

---

 meta/recipes-bsp/u-boot/u-boot.inc |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/meta/recipes-bsp/u-boot/u-boot.inc b/meta/recipes-bsp/u-boot/u-boot.inc
index 0445c34..a13eddc 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





More information about the Openembedded-commits mailing list