]> git.dujemihanovic.xyz Git - u-boot.git/commit
rockchip: mkimage: Remove host endianness dependency
authorSamuel Holland <samuel@sholland.org>
Sat, 24 Oct 2020 16:43:17 +0000 (11:43 -0500)
committerKever Yang <kever.yang@rock-chips.com>
Fri, 30 Oct 2020 15:09:56 +0000 (23:09 +0800)
commit29ef48efe131678a02750f0a8daa5b2b71530e87
treeb527b1d52e07fac6b414a6c6494410ff09e9bd7c
parentd2ebd86d2e10370b4e27109b341ca0268c84f5c8
rockchip: mkimage: Remove host endianness dependency

The Rockchip boot ROM expects little-endian values in the image header.
When running mkimage on a big-endian machine, these values need to be
byteswapped before writing or verifying the header.

This change fixes cross-compiling U-Boot SPL for the RK3399 SoC from a
big-endian ppc64 host machine.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Kever Yang<kever.yang@rock-chips.com>
tools/rkcommon.c