summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2020-08-07 18:47:13 +0300
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2020-08-08 20:03:24 +0300
commit1064d04920beba5564c84fde1993dd39c809ed49 (patch)
treeff82f9fd5ef885e6f2f9d567cacf882c8706ca44 /include
parentdd92aad81c8e3f3adaeaf0ca793fbfa06edec712 (diff)
downloadu-boot-1064d04920beba5564c84fde1993dd39c809ed49.tar.xz
efi_loader: factor out efi_set_load_options()
The bootefi bootmgr command has to set the load options for a loaded image from the value of BootXXXX variable. If the boot manager is not used, the value is set from the environment variable bootargs (or efi_selftest). Factor out a common function efi_set_load_options(). Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'include')
-rw-r--r--include/efi_loader.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/efi_loader.h b/include/efi_loader.h
index 98944640be..ad580bd226 100644
--- a/include/efi_loader.h
+++ b/include/efi_loader.h
@@ -717,6 +717,9 @@ struct efi_load_option {
efi_status_t efi_deserialize_load_option(struct efi_load_option *lo, u8 *data,
efi_uintn_t *size);
unsigned long efi_serialize_load_option(struct efi_load_option *lo, u8 **data);
+efi_status_t efi_set_load_options(efi_handle_t handle,
+ efi_uintn_t load_options_size,
+ void *load_options);
efi_status_t efi_bootmgr_load(efi_handle_t *handle);
/**