]> git.baikalelectronics.ru Git - uboot.git/commit
efi_loader: function to get GUID for variable name
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 9 Sep 2021 06:22:58 +0000 (08:22 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Mon, 25 Oct 2021 19:13:06 +0000 (21:13 +0200)
commitd8775a20a216d59900768ce2f5054223c18ccabf
tree866b9979ae4ad4e6082054be2cdb821185027afa
parentffbd9e3865cec669dbc129cdf8f80537c68da6a2
efi_loader: function to get GUID for variable name

In multiple places we need the default GUID matching a variable name.
The patch provides a library function. For secure boot related variables
like 'PK', 'KEK', 'db' a lookup table is used. For all other variable
names EFI_GLOBAL_VARIABLE is returned.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
include/efi_variable.h
lib/efi_loader/efi_var_common.c