From: Fabio Estevam <festevam@gmail.com>
Date: Sat, 8 Jun 2019 17:56:44 +0000 (-0300)
Subject: spl: imx6: Provide a SPL_SIZE_LIMIT default
X-Git-Tag: v2025.01-rc5-pxa1908~2934^2
X-Git-Url: http://git.dujemihanovic.xyz/img/%7B%7B%20%24style.RelPermalink%20%7D%7D?a=commitdiff_plain;h=23612534fe0f;p=u-boot.git

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>
---

diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index ac2f470032..48f6b39a75 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -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.