[PATCH] liebherr: btt: shrink spl_board_init

Fabio Estevam festevam at gmail.com
Fri Oct 31 02:49:14 CET 2025


On Thu, Oct 23, 2025 at 5:48 AM Rasmus Villemoes <ravi at prevas.dk> wrote:
>
> This board is very tight on space in SPL; in fact with my compiler it
> ends up just exactly on the wrong side:
>
> spl/u-boot-spl.bin exceeds file size limit:
>   limit:  0xa000 bytes
>   actual: 0xa014 bytes
>   excess: 0x14 bytes
>
> The repeated "lookup and request" pattern in spl_board_init() suggests
> a low-hanging fruit for reducing the code size. This reduces the
> object size of spl/board/liebherr/btt/btt.o by 300 bytes.
>
> I've left the lack of error handling as-is; there isn't really
> anything to do if it fails, so I suppose the printfs are the best that
> can be done.
>
> Signed-off-by: Rasmus Villemoes <ravi at prevas.dk>
> ---
> Compile-tested only. Stumbled on this while investigating why another patch failed CI.

Applied, thanks.


More information about the U-Boot mailing list