mirror of
https://git.yoctoproject.org/poky
synced 2026-09-19 00:49:33 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
8f0517a6b3
commit
01d57e6548
@@ -36,6 +36,10 @@ SPL_IMAGE ?= "${SPL_BINARY}-${MACHINE}-${PV}-${PR}"
|
|||||||
SPL_SYMLINK ?= "${SPL_BINARY}-${MACHINE}"
|
SPL_SYMLINK ?= "${SPL_BINARY}-${MACHINE}"
|
||||||
|
|
||||||
do_compile () {
|
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 LDFLAGS
|
||||||
unset CFLAGS
|
unset CFLAGS
|
||||||
unset CPPFLAGS
|
unset CPPFLAGS
|
||||||
|
|||||||
Reference in New Issue
Block a user