1 // SPDX-License-Identifier: GPL-2.0+
18 * Board-specific Platform code can reimplement show_boot_progress () if needed
20 __weak void show_boot_progress(int val) {}
22 static void run_preboot_environment_command(void)
26 p = env_get("preboot");
30 if (IS_ENABLED(CONFIG_AUTOBOOT_KEYED))
31 prev = disable_ctrlc(1); /* disable Ctrl-C checking */
33 run_command_list(p, -1, 0);
35 if (IS_ENABLED(CONFIG_AUTOBOOT_KEYED))
36 disable_ctrlc(prev); /* restore Ctrl-C checking */
40 /* We come here after U-Boot is initialised and ready to process commands */
45 bootstage_mark_name(BOOTSTAGE_ID_MAIN_LOOP, "main_loop");
47 if (IS_ENABLED(CONFIG_VERSION_VARIABLE))
48 env_set("ver", version_string); /* set version variable */
52 if (IS_ENABLED(CONFIG_USE_PREBOOT))
53 run_preboot_environment_command();
55 if (IS_ENABLED(CONFIG_UPDATE_TFTP))
56 update_tftp(0UL, NULL, NULL);
58 s = bootdelay_process();
59 if (cli_process_fdt(&s))
60 cli_secure_boot_cmd(s);
65 panic("No CLI available");