eficonfig: use efi_get_next_variable_name_int()
authorMasahisa Kojima <masahisa.kojima@linaro.org>
Fri, 2 Dec 2022 04:59:36 +0000 (13:59 +0900)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 2 Dec 2022 18:17:25 +0000 (19:17 +0100)
commit140a8959d48f8ac3734d53b4c8b6b9b5596bc698
tree3dbcd3d2221bd0d464bf30c0d19d8810fde0b412
parent3ac026ae46f2c55b11b9544f7e8770eaadd2982c
eficonfig: use efi_get_next_variable_name_int()

eficonfig command reads all possible UEFI load options
from 0x0000 to 0xFFFF to construct the menu. This takes too much
time in some environment.
This commit uses efi_get_next_variable_name_int() to read all
existing UEFI load options to significantlly reduce the count of
efi_get_var() call.

Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org>
cmd/eficonfig.c