| // SPDX-License-Identifier: GPL-2.0+ |
| * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| #include <version_string.h> |
| static void run_preboot_environment_command(void) |
| if (IS_ENABLED(CONFIG_AUTOBOOT_KEYED)) |
| prev = disable_ctrlc(1); /* disable Ctrl-C checking */ |
| run_command_list(p, -1, 0); |
| if (IS_ENABLED(CONFIG_AUTOBOOT_KEYED)) |
| disable_ctrlc(prev); /* restore Ctrl-C checking */ |
| /* We come here after U-Boot is initialised and ready to process commands */ |
| bootstage_mark_name(BOOTSTAGE_ID_MAIN_LOOP, "main_loop"); |
| if (IS_ENABLED(CONFIG_VERSION_VARIABLE)) |
| env_set("ver", version_string); /* set version variable */ |
| if (IS_ENABLED(CONFIG_USE_PREBOOT)) |
| run_preboot_environment_command(); |
| if (IS_ENABLED(CONFIG_UPDATE_TFTP)) |
| update_tftp(0UL, NULL, NULL); |
| if (IS_ENABLED(CONFIG_EFI_CAPSULE_ON_DISK_EARLY)) { |
| /* efi_init_early() already called */ |
| if (efi_init_obj_list() == EFI_SUCCESS) |
| panic("No CLI available"); |