summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/u-boot
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-bsp/u-boot')
-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