bootm: Do bootstage processing in bootm_final()

Mark kernel start before booting. If enabled, show a bootstage report.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-07-08 07:57:08 +02:00
parent df1d27e51c
commit bd57096c36
2 changed files with 8 additions and 1 deletions

View File

@@ -6,11 +6,17 @@
*/
#include <bootm.h>
#include <bootstage.h>
#include <dm/root.h>
void bootm_final(enum bootm_final_t flags)
{
printf("\nStarting kernel ...\n\n");
bootstage_mark_name(BOOTSTAGE_ID_BOOTM_HANDOFF, "start_kernel");
if (IS_ENABLED(CONFIG_BOOTSTAGE_REPORT))
bootstage_report();
dm_remove_devices_active();
}

View File

@@ -1338,7 +1338,8 @@ static int bootflow_efi(struct unit_test_state *uts)
ut_assert_nextline_empty();
ut_assert_nextline("Starting kernel ...");
ut_assert_nextline_empty();
ut_assert_nextline("Exiting test app");
ut_assert_nextlinen("Timer summary in microseconds");
ut_assert_skip_to_line("Exiting test app");
ut_assert_nextline("Boot failed (err=-14)");
ut_assert_console_end();