mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-18 06:38:15 +01:00
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>
This commit is contained in:
parent
e4c2f0f786
commit
1c987e6fb4
3
Kconfig
3
Kconfig
@ -500,13 +500,14 @@ config BUILD_TARGET
|
|||||||
|
|
||||||
config HAS_BOARD_SIZE_LIMIT
|
config HAS_BOARD_SIZE_LIMIT
|
||||||
bool "Define a maximum size for the U-Boot image"
|
bool "Define a maximum size for the U-Boot image"
|
||||||
default y if RCAR_64
|
default y if RCAR_32 || RCAR_64
|
||||||
help
|
help
|
||||||
In some cases, we need to enforce a hard limit on how big the U-Boot
|
In some cases, we need to enforce a hard limit on how big the U-Boot
|
||||||
image itself can be.
|
image itself can be.
|
||||||
|
|
||||||
config BOARD_SIZE_LIMIT
|
config BOARD_SIZE_LIMIT
|
||||||
int "Maximum size of the U-Boot image in bytes"
|
int "Maximum size of the U-Boot image in bytes"
|
||||||
|
default 524288 if RCAR_32
|
||||||
default 1048576 if RCAR_64
|
default 1048576 if RCAR_64
|
||||||
depends on HAS_BOARD_SIZE_LIMIT
|
depends on HAS_BOARD_SIZE_LIMIT
|
||||||
help
|
help
|
||||||
|
Loading…
x
Reference in New Issue
Block a user