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)
commitd1c07785fd68def6aa2251a15eed99f2e9c8071f
tree1eb94144642dfea3a90911eb33426a1da78552db
parent2c79229c02ad9f0eae4faee028a76394d00a699d
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]