Re: [PATCH] treewide: Remove empty board_init() function from all boards
Bryan Brattlof <[email protected]> Thu, 17 Jul 2025 08:07:27 -0500
| Newsgroups | io.groups.u-boot-amlogic,org.u-boot-project.lists.u-boot |
|---|---|
| Message-ID | <[email protected]> |
On July 16, 2025 thus sayeth Sam Protsenko:
> Commit 86acdce2ba88 ("common: add config for board_init() call")
> introduced CONFIG_BOARD_INIT option. This option can be disabled for the
> boards where board_init() function is not needed. Remove empty
> board_init() calls for all boards where it's possible, and disable
> CONFIG_BOARD_INIT in all related defconfigs.
>
> This cleanup was made semi-automatically using these scripts: [1].
>
> No functional change, but the binary size for the modified boards is
> reduced a bit.
>
> [1] https://github.com/joe-skb7/uboot-convert-scripts/tree/master/remove-board-init
>
> Signed-off-by: Sam Protsenko <[email protected]>
> ---
This appears to work for the TI's K3 boards
Tested-by: Bryan Brattlof <[email protected]>
~Bryan