]> git.ipfire.org Git - thirdparty/u-boot.git/commit
bootm: Create bootm_final() for pre-boot cleanup
authorSimon Glass <simon.glass@canonical.com>
Fri, 6 Mar 2026 02:36:13 +0000 (19:36 -0700)
committerTom Rini <trini@konsulko.com>
Wed, 18 Mar 2026 19:17:34 +0000 (13:17 -0600)
commit1ec3ee670de6b2f8f96cd7c15f7e22e89a06bb2d
tree7b2f60d5b3daa8fce368e12a56b1ebe35c12ea2d
parent5cc969caf0ba247d8464af1fd87110e73309e37d
bootm: Create bootm_final() for pre-boot cleanup

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@canonical.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
boot/bootm.c
include/bootm.h