aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDu Huanpeng <dhu@hodcarrier.org>2022-03-31 02:41:42 +0800
committerTom Rini <trini@konsulko.com>2022-04-06 09:21:49 -0400
commit21d3e3d107f3b60abe3b10f50930e22330d7e2d3 (patch)
treeb8fd4b8f7e28540caa907e8385bd17402b257a05 /Makefile
parente8cb4e78c7dcd51f5ef92f465919ce19f8a0356f (diff)
downloadu-boot-21d3e3d107f3b60abe3b10f50930e22330d7e2d3.zip
u-boot-21d3e3d107f3b60abe3b10f50930e22330d7e2d3.tar.gz
u-boot-21d3e3d107f3b60abe3b10f50930e22330d7e2d3.tar.bz2
Makefile: add endian link flag to u-boot-elf.o
fix compile error when using a little-endian to build with configs: sfr_nb4-ser_ram_defconfig comtrend_wap5813n_ram_defconfig comtrend_ar5387un_ram_defconfig comtrend_ct5361_ram_defconfig comtrend_vr3032u_ram_defconfig comtrend_ar5315u_ram_defconfig huawei_hg556a_ram_defconfig netgear_dgnd3700v2_ram_defconfig Signed-off-by: Du Huanpeng <dhu@hodcarrier.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 81349a7..4b347d3 100644
--- a/Makefile
+++ b/Makefile
@@ -1708,6 +1708,7 @@ u-boot-img-spl-at-end.bin: u-boot.img spl/u-boot-spl.bin FORCE
quiet_cmd_u-boot-elf ?= LD $@
cmd_u-boot-elf ?= $(LD) u-boot-elf.o -o $@ \
+ $(if $(CONFIG_SYS_BIG_ENDIAN),-EB,-EL) \
-T u-boot-elf.lds --defsym=$(CONFIG_PLATFORM_ELFENTRY)=$(CONFIG_SYS_TEXT_BASE) \
-Ttext=$(CONFIG_SYS_TEXT_BASE)
u-boot.elf: u-boot.bin u-boot-elf.lds