sh4-fix-linker-name-prefix.patch
authorVagrant Cascadian <vagrant@debian.org>
Tue, 21 Apr 2020 02:34:37 +0000 (03:34 +0100)
committerVagrant Cascadian <vagrant@debian.org>
Tue, 21 Apr 2020 02:34:37 +0000 (03:34 +0100)
u-boot currently fails to build from source on sh4 since the
linker name prefix defined in arch/sh/config.mk is outdated.
On current Debian installations, the binaries of the GNU
toolchain are named using the triplett scheme
$arch-$kernel-$toolchain. Thus, on sh4, the proper name
is "sh4-linux-gnu-ld" instead of "sh4-linux-ld". This
patch updates build configuration on sh4 to reflect that.

Gbp-Pq: Name sh4-fix-linker-name-prefix.patch

arch/sh/config.mk

index 6ef44638abd0855644c024a6feecfad02279d683..e3d6a9d62fde1a035dbe9fe12ad024002b789446 100644 (file)
@@ -4,7 +4,7 @@
 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
 
 ifeq ($(CROSS_COMPILE),)
-CROSS_COMPILE := sh4-linux-
+CROSS_COMPILE := sh4-linux-gnu-
 endif
 
 CONFIG_STANDALONE_LOAD_ADDR ?= 0x8C000000