mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 22:20:45 +00:00
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>
This commit is contained in:
parent
90ae53ce1a
commit
90340c87e5
1 changed files with 5 additions and 0 deletions
|
@ -9,7 +9,12 @@
|
|||
|
||||
#include "config.h"
|
||||
|
||||
#ifdef CONFIG_SYS_BIG_ENDIAN
|
||||
OUTPUT_FORMAT("elf32-shbig-linux", "elf32-shbig-linux", "elf32-sh-linux")
|
||||
#else
|
||||
OUTPUT_FORMAT("elf32-sh-linux", "elf32-sh-linux", "elf32-sh-linux")
|
||||
#endif
|
||||
|
||||
OUTPUT_ARCH(sh)
|
||||
|
||||
MEMORY
|
||||
|
|
Loading…
Reference in a new issue