imx: mkimage: add size check to the u-boot.imx make target
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>
Fri, 9 Nov 2018 14:31:17 +0000 (15:31 +0100)
committerStefano Babic <sbabic@denx.de>
Mon, 12 Nov 2018 10:08:53 +0000 (11:08 +0100)
commit43e6f94cbcaf193aeedcf86e85a3ff4c79f66773
treeb37a857f0f7fcb40dadfdddae393615bc00988d1
parent42cc42aceab73f25b7a4e791aa1478add987cee8
imx: mkimage: add size check to the u-boot.imx make target

The make macro to check if the binary exceeds the board size limit is
taken straight from the root Makefile.

Without this and e.g. enabled EFI Vybrid fails booting as the regular
size limit check does not take the final u-boot.imx binary size into
account which is bigger due to alignment as well as IMX header stuff.

Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
arch/arm/mach-imx/Makefile