]> git.ipfire.org Git - thirdparty/u-boot.git/commit
efi: Create a function to set up for running EFI code
authorSimon Glass <sjg@chromium.org>
Mon, 26 Nov 2018 03:14:38 +0000 (20:14 -0700)
committerAlexander Graf <agraf@suse.de>
Sun, 2 Dec 2018 20:59:37 +0000 (21:59 +0100)
commitf4f0f7cb6e0a61f4a3ae0f2aadbe95654df602b5
tree2fc7165c4ffb9107460e2e37d9c66109a04d6249
parentd9717eae316d4ffd84146257dd7674c2ff6406f9
efi: Create a function to set up for running EFI code

There is still duplicated code in efi_loader for tests and normal
operation.

Add a new bootefi_run_prepare() function which holds common code used to
set up U-Boot to run EFI code. Make use of this from the existing
bootefi_test_prepare() function, as well as do_bootefi_exec().

Also shorten a few variable names.

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
cmd/bootefi.c