boot: Create a function for final pre-boot steps

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.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-07-08 07:41:21 +02:00
parent 469917f67d
commit ed1c8186cf
4 changed files with 31 additions and 1 deletions

12
boot/bootm_final.c Normal file
View File

@@ -0,0 +1,12 @@
// SPDX-License-Identifier: GPL-2.0+
/*
* Cleanup before handing off to the OS
*
* Copyright 2025 Simon Glass <sjg@chromium.org>
*/
#include <bootm.h>
void bootm_final(enum bootm_final_t flags)
{
}