summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2018-06-28 12:45:31 +0200
committerAlexander Graf <agraf@suse.de>2018-07-25 15:00:24 +0200
commit640adadf811e9c229ddec597595a00db3f5304b0 (patch)
tree5bc66727594be4185571bede4c91d8cf437d6380 /cmd
parent0b386537a51d5ac6e2da022ade49424ecc50ffa1 (diff)
efi_loader: calculate crc32 for EFI tables
For the boot and runtime services tables and for the system table the crc32 has to be set in the header. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/bootefi.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/bootefi.c b/cmd/bootefi.c
index 4097277c9c..e57e70fc61 100644
--- a/cmd/bootefi.c
+++ b/cmd/bootefi.c
@@ -44,6 +44,11 @@ efi_status_t efi_init_obj_list(void)
if (efi_obj_list_initialized != OBJ_LIST_NOT_INITIALIZED)
return efi_obj_list_initialized;
+ /* Initialize system table */
+ ret = efi_initialize_system_table();
+ if (ret != EFI_SUCCESS)
+ goto out;
+
/* Initialize EFI driver uclass */
ret = efi_driver_init();
if (ret != EFI_SUCCESS)