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 <[email protected]>
> ---
> 
> (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

Attachment: signature.asc
Description: PGP signature

Reply via email to