[PATCH v4 04/17] bootm: Create bootm_final() for pre-boot cleanup

Tom Rini trini at konsulko.com
Fri Mar 6 16:12:22 CET 2026


On Thu, Mar 05, 2026 at 07:36:13PM -0700, Simon Glass wrote:

> From: Simon Glass <simon.glass at canonical.com>
> 
> 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 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 bootm_final() function with the common pre-boot steps:
> printing the "Starting kernel" message, recording bootstage data,
> optionally writing bootstage to the FDT and printing a report, and
> removing active devices.
> 
> Be careful to avoid using BIT() macros which are not available with host
> tools.
> 
> Signed-off-by: Simon Glass <simon.glass at canonical.com>
> 

Reviewed-by: Tom Rini <trini at konsulko.com>

-- 
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/20260306/0c21386b/attachment.sig>


More information about the U-Boot mailing list