aboutsummaryrefslogtreecommitdiff
path: root/Kconfig
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut+renesas@mailbox.org>2024-02-11 18:34:29 +0100
committerMarek Vasut <marek.vasut+renesas@mailbox.org>2024-02-17 22:38:20 +0100
commit1c987e6fb4df31edde25d7517cfdcddce2f639c8 (patch)
tree15f49ce938a100516da331816d20b615971528b3 /Kconfig
parente4c2f0f78646e179632d0e8bcadfaab5c6077cc0 (diff)
downloadu-boot-1c987e6fb4df31edde25d7517cfdcddce2f639c8.zip
u-boot-1c987e6fb4df31edde25d7517cfdcddce2f639c8.tar.gz
u-boot-1c987e6fb4df31edde25d7517cfdcddce2f639c8.tar.bz2
ARM: renesas: Set R-Car Gen2 board size limit to 512 kiB
The maximum size of u-boot.img on R-Car Gen2 is 0x80000 or 512 kiB, set the limit to avoid overflows as new functionality gets pulled in. Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org> Reviewed-by: Paul Barker <paul.barker.ct@bp.renesas.com>
Diffstat (limited to 'Kconfig')
-rw-r--r--Kconfig3
1 files changed, 2 insertions, 1 deletions
diff --git a/Kconfig b/Kconfig
index 00ed1ec..5710934 100644
--- a/Kconfig
+++ b/Kconfig
@@ -500,13 +500,14 @@ config BUILD_TARGET
config HAS_BOARD_SIZE_LIMIT
bool "Define a maximum size for the U-Boot image"
- default y if RCAR_64
+ default y if RCAR_32 || RCAR_64
help
In some cases, we need to enforce a hard limit on how big the U-Boot
image itself can be.
config BOARD_SIZE_LIMIT
int "Maximum size of the U-Boot image in bytes"
+ default 524288 if RCAR_32
default 1048576 if RCAR_64
depends on HAS_BOARD_SIZE_LIMIT
help