diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2012-04-22 15:01:32 -0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-04-24 15:51:36 +0100 |
commit | 2e79fcd673dadeab6358fe22d47c8534c14de03e (patch) | |
tree | a4572afad7d3c8339f4f0c521ce3e86b84dfd1bc /meta/recipes-bsp | |
parent | 2aefac2a2c508da11a73e29d82947ac627d31118 (diff) | |
download | openembedded-core-2e79fcd673dadeab6358fe22d47c8534c14de03e.tar.gz openembedded-core-2e79fcd673dadeab6358fe22d47c8534c14de03e.tar.bz2 openembedded-core-2e79fcd673dadeab6358fe22d47c8534c14de03e.tar.xz openembedded-core-2e79fcd673dadeab6358fe22d47c8534c14de03e.zip |
u-boot.inc: fix compilation when using 'gold' as linker
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'meta/recipes-bsp')
-rw-r--r-- | 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 0445c343d..a13eddc82 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 |