
From: Simon Glass <sjg@chromium.org> Mark kernel start before booting. If enabled, show a bootstage report. Signed-off-by: Simon Glass <sjg@chromium.org> --- boot/bootm_final.c | 6 ++++++ test/boot/bootflow.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/boot/bootm_final.c b/boot/bootm_final.c index 71661334e11..dd7cac55f1e 100644 --- a/boot/bootm_final.c +++ b/boot/bootm_final.c @@ -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(); } diff --git a/test/boot/bootflow.c b/test/boot/bootflow.c index 7034bef1f05..671636e5e21 100644 --- a/test/boot/bootflow.c +++ b/test/boot/bootflow.c @@ -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(); -- 2.43.0