The SPL image for the Tinker Board has to fit into 32 KiB. This includes
up to 2 KiB for the file header.
A new configuration variable CONFIG_SPL_SIZE_LIMIT is introduced to define
the board specific limit.
A common Makefile function is used for this test and the test against
CONFIG_BOARD_SIZE_LIMIT.
Move the board size check from arch/arm/mach-imx/Makefile to Makefile.
v4:
use a common function for all size checks in the Makefiles
Heinrich Schuchardt (4):
Makefile: reusable function for BOARD_SIZE_CHECK
imx: move BOARD_SIZE_CHECK to main Makefile
configs: define CONFIG_SPL_SIZE_LIMIT
configs: rk3288: Tinker Board SPL file must fit into 32 KiB
Kconfig | 8 ++++++++
Makefile | 33 +++++++++++++++++++++++----------
arch/arm/mach-imx/Makefile | 16 ----------------
configs/tinker-rk3288_defconfig | 1 +
4 files changed, 32 insertions(+), 26 deletions(-)
--
2.20.1
_______________________________________________
U-Boot mailing list
[email protected]
https://lists.denx.de/listinfo/u-boot