mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
efi_loader: make the UEFI boot manager configurable
Some boards are very tight on the binary size. Booting via UEFI is possible without using the boot manager. Provide a configuration option to make the boot manager available. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
2363effb7a
commit
ff2f532fad
5 changed files with 33 additions and 10 deletions
|
@ -1367,8 +1367,8 @@ static int do_efi_boot_opt(struct cmd_tbl *cmdtp, int flag,
|
|||
*
|
||||
* efidebug test bootmgr
|
||||
*/
|
||||
static int do_efi_test_bootmgr(struct cmd_tbl *cmdtp, int flag,
|
||||
int argc, char * const argv[])
|
||||
static __maybe_unused int do_efi_test_bootmgr(struct cmd_tbl *cmdtp, int flag,
|
||||
int argc, char * const argv[])
|
||||
{
|
||||
efi_handle_t image;
|
||||
efi_uintn_t exit_data_size = 0;
|
||||
|
@ -1392,8 +1392,10 @@ static int do_efi_test_bootmgr(struct cmd_tbl *cmdtp, int flag,
|
|||
}
|
||||
|
||||
static struct cmd_tbl cmd_efidebug_test_sub[] = {
|
||||
#ifdef CONFIG_CMD_BOOTEFI_BOOTMGR
|
||||
U_BOOT_CMD_MKENT(bootmgr, CONFIG_SYS_MAXARGS, 1, do_efi_test_bootmgr,
|
||||
"", ""),
|
||||
#endif
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -1581,8 +1583,10 @@ static char efidebug_help_text[] =
|
|||
" - show UEFI memory map\n"
|
||||
"efidebug tables\n"
|
||||
" - show UEFI configuration tables\n"
|
||||
#ifdef CONFIG_CMD_BOOTEFI_BOOTMGR
|
||||
"efidebug test bootmgr\n"
|
||||
" - run simple bootmgr for test\n"
|
||||
#endif
|
||||
"efidebug query [-nv][-bs][-rt][-at]\n"
|
||||
" - show size of UEFI variables store\n";
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue