[PATCH] configs: legoev3: adjust to reduce binary size

Tom Rini trini at konsulko.com
Fri Jul 4 22:28:11 CEST 2025


On Fri, Jul 04, 2025 at 02:15:20PM -0500, David Lechner wrote:

> Adjust legoev3_defconfig to reduce the binary output size.
> 
> As u-boot has bloated a bit over the years, the legoev3_defconfig can no
> longer build something that fits in the 256kB size limit of the EV3.
> This drops a few unused features, but the real difference-makers are
> enabling thumb instructions and using link time optimization to reduce
> the size.
> 
> This reduced u-boot.bin from 279,920 to 198,416 bytes on my local
> machine with arm-none-eabi-gcc (15:13.2.rel1-2) 13.2.1 20231009.
> 
> Signed-off-by: David Lechner <david at lechnology.com>
> ---
>  configs/legoev3_defconfig | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Thanks for doing this. Can you please also enable HAS_BOARD_SIZE_LIMIT
and then set the limit? This will help ensure we don't break in the
future.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20250704/5e7fb184/attachment.sig>


More information about the U-Boot mailing list