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-26 10:05:13 +0100 |
commit | 01d57e65486046430050bf4d5de9e2a21bcccf1c (patch) | |
tree | 2d45bf668785991f70cc73ee87bde2fb6a1fcb92 /meta/recipes-bsp/u-boot | |
parent | 8f0517a6b30470d9ad51d3a5263cbc372ad0e27e (diff) | |
download | poky-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/u-boot')
-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 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}" | |||
36 | SPL_SYMLINK ?= "${SPL_BINARY}-${MACHINE}" | 36 | SPL_SYMLINK ?= "${SPL_BINARY}-${MACHINE}" |
37 | 37 | ||
38 | do_compile () { | 38 | do_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 |