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:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user