]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
spl: imx6: Provide a SPL_SIZE_LIMIT default
authorFabio Estevam <festevam@gmail.com>
Sat, 8 Jun 2019 17:56:44 +0000 (14:56 -0300)
committerStefano Babic <sbabic@denx.de>
Tue, 11 Jun 2019 08:43:00 +0000 (10:43 +0200)
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>
common/spl/Kconfig

index ac2f470032d8b42ad579c5af813e62961b2a55f3..48f6b39a7587ab5bc69f6f975e3c746c689dc88f 100644 (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.