spl: imx6: Provide a SPL_SIZE_LIMIT default

As explained in include/configs/imx6_spl.h. the i.MX6 SPL
size limit is 68KB (4KB header + 64KB max size).

Provide such limit for all i.MX6 boards that use SPL
to detect SPL size overflow in build time.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Lukasz Majewski <lukma@denx.de>
This commit is contained in:
Fabio Estevam 2019-06-08 14:56:44 -03:00 committed by Stefano Babic
parent 940db3b410
commit 23612534fe
1 changed files with 1 additions and 0 deletions

View File

@ -28,6 +28,7 @@ config SPL_FRAMEWORK
config SPL_SIZE_LIMIT
int "Maximum size of SPL image"
depends on SPL
default 69632 if ARCH_MX6
default 0
help
Specifies the maximum length of the U-Boot SPL image.