[PATCH v2 1/9] boot: Create a function for final pre-boot steps
Tom Rini
trini at konsulko.com
Tue Feb 24 17:05:19 CET 2026
On Tue, Feb 24, 2026 at 07:25:43AM -0700, Simon Glass wrote:
> There are various functions which announce that booting is imminent and
> do related preparation. Most of these are arch-specific.
>
> In practice, most archs do the a similar thing. It would be better to
> have a common function, with perhaps some events for things that are
> really arch- and board-specific.
>
> Create a new function for this. For now, nothing uses it. Be careful to
> avoid using BIT() macros which are not available with host tools.
>
> Signed-off-by: Simon Glass <simon.glass at canonical.com>
> ---
>
> (no changes since v1)
>
> MAINTAINERS | 1 +
> boot/Makefile | 2 +-
> boot/bootm_final.c | 12 ++++++++++++
> include/bootm.h | 17 +++++++++++++++++
> 4 files changed, 31 insertions(+), 1 deletion(-)
> create mode 100644 boot/bootm_final.c
I don't think a new file for a function is worthwhile given the linker
optimization related fun that then happens (even with LTO). This should
just go in one of the existing bootm files.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20260224/ead8032e/attachment.sig>
More information about the U-Boot
mailing list