efi: app: Implement efidebug boot dump
Seeing the boot order is useful in the app. Everything we need is present except an implementation of efi_query_variable_info_int(), so add that and enable 'efidebug boot dump'. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -1234,9 +1234,6 @@ static int do_efi_boot_dump(struct cmd_tbl *cmdtp, int flag,
|
||||
efi_guid_t guid;
|
||||
efi_status_t ret;
|
||||
|
||||
if (app_not_supported("boot dump"))
|
||||
return CMD_RET_FAILURE;
|
||||
|
||||
if (argc > 1)
|
||||
return CMD_RET_USAGE;
|
||||
|
||||
@@ -1615,9 +1612,6 @@ static int do_efi_query_info(struct cmd_tbl *cmdtp, int flag,
|
||||
u64 max_variable_size;
|
||||
int i;
|
||||
|
||||
if (app_not_supported("query"))
|
||||
return CMD_RET_FAILURE;
|
||||
|
||||
for (i = 1; i < argc; i++) {
|
||||
if (!strcmp(argv[i], "-bs"))
|
||||
attr |= EFI_VARIABLE_BOOTSERVICE_ACCESS;
|
||||
|
||||
@@ -39,3 +39,17 @@ efi_status_t efi_get_next_variable_name_int(efi_uintn_t *variable_name_size,
|
||||
|
||||
return run->get_next_variable_name(variable_name_size, variable_name, vendor);
|
||||
}
|
||||
|
||||
efi_status_t efi_query_variable_info_int(u32 attributes,
|
||||
u64 *maximum_variable_storage_size,
|
||||
u64 *remaining_variable_storage_size,
|
||||
u64 *maximum_variable_size)
|
||||
{
|
||||
struct efi_runtime_services *run = efi_get_run();
|
||||
|
||||
return run->query_variable_info(attributes,
|
||||
maximum_variable_storage_size,
|
||||
remaining_variable_storage_size,
|
||||
maximum_variable_size);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user