]> git.baikalelectronics.ru Git - uboot.git/commit
arch/sh: allow building in big-endian mode
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 28 Jul 2017 21:14:28 +0000 (23:14 +0200)
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Fri, 25 Aug 2017 22:38:39 +0000 (07:38 +0900)
commit5b042c1d4ce7784ccf90af59ffb34cf5d40a17b8
tree014630dff1072fbc2d9cf54ae76dbdd4aa25d4ca
parent640e0d37d6c1298b45fb0b9c7133d7a0ce7f2c7d
arch/sh: allow building in big-endian mode

The SuperH architecture allows to be run in either little or big
endian mode. Some SuperH SoCs get the little vs. big endian decision
through mode pins sampled at reset, so if big endian has been choosen
by HW designers, it cannot be easily changed.

Therefore, it makes sense to allow building U-Boot for SuperH in big
endian mode. To allow this, the only change needed is to adjust the
OUTPUT_FORMAT() in the linker script.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
arch/sh/cpu/u-boot.lds