]> git.baikalelectronics.ru Git - uboot.git/commit
imx8: Add support to get container image set size
authorPeng Fan <peng.fan@nxp.com>
Mon, 23 Sep 2019 02:18:44 +0000 (10:18 +0800)
committerStefano Babic <sbabic@denx.de>
Tue, 8 Oct 2019 14:36:36 +0000 (16:36 +0200)
commit37d581ab3b03827525a2782f3d4adaba1e7d0220
tree1eb94144642dfea3a90911eb33426a1da78552db
parenta12b809073a9b0f56ec691904b59c9fa303f306b
imx8: Add support to get container image set size

To avoid hardcoded offset when adding u-boot.cnt to flash.bin, we use
flexible offset which is calculated based on the size of the container
image generated int the first stage. And pad u-boot.cnt at 1KB
alignment.

So add code to get the offset when SPL loading u-boot.cnt.

Signed-off-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/mach-imx/Makefile
arch/arm/mach-imx/imx8/Makefile
arch/arm/mach-imx/imx8/image.c [new file with mode: 0644]