Re: [PATCH 2/3] ARM: renesas: Set R-Car Gen2 board size limit to 512 kiB

2024-02-12 Thread Paul Barker
On 11/02/2024 17:34, Marek Vasut wrote:
> The maximum size of u-boot.img on R-Car Gen2 is 0x8 or 512 kiB,
> set the limit to avoid overflows as new functionality gets pulled in.
> 
> Signed-off-by: Marek Vasut 
> ---
> Cc: Niklas Söderlund 
> Cc: Paul Barker 
> ---
>  Kconfig | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

Reviewed-by: Paul Barker 


OpenPGP_0x27F4B3459F002257.asc
Description: OpenPGP public key


OpenPGP_signature.asc
Description: OpenPGP digital signature


[PATCH 2/3] ARM: renesas: Set R-Car Gen2 board size limit to 512 kiB

2024-02-11 Thread Marek Vasut
The maximum size of u-boot.img on R-Car Gen2 is 0x8 or 512 kiB,
set the limit to avoid overflows as new functionality gets pulled in.

Signed-off-by: Marek Vasut 
---
Cc: Niklas Söderlund 
Cc: Paul Barker 
---
 Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Kconfig b/Kconfig
index 00ed1ecc173..5710934000f 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
-- 
2.43.0