summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2012-04-22 15:01:32 -0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-04-26 10:05:13 +0100
commit01d57e65486046430050bf4d5de9e2a21bcccf1c (patch)
tree2d45bf668785991f70cc73ee87bde2fb6a1fcb92 /meta/recipes-bsp
parent8f0517a6b30470d9ad51d3a5263cbc372ad0e27e (diff)
downloadpoky-01d57e65486046430050bf4d5de9e2a21bcccf1c.tar.gz
u-boot.inc: fix compilation when using 'gold' as linker
(From OE-Core rev: 2e79fcd673dadeab6358fe22d47c8534c14de03e) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp')
-rw-r--r--meta/recipes-bsp/u-boot/u-boot.inc4
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 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}"
36SPL_SYMLINK ?= "${SPL_BINARY}-${MACHINE}" 36SPL_SYMLINK ?= "${SPL_BINARY}-${MACHINE}"
37 37
38do_compile () { 38do_compile () {
39 if [ "${@base_contains('DISTRO_FEATURES', 'ld-is-gold', 'ld-is-gold', '', d)}" = "ld-is-gold" ] ; then
40 sed -i 's/$(CROSS_COMPILE)ld/$(CROSS_COMPILE)ld.bfd/g' config.mk
41 fi
42
39 unset LDFLAGS 43 unset LDFLAGS
40 unset CFLAGS 44 unset CFLAGS
41 unset CPPFLAGS 45 unset CPPFLAGS