diff options
author | Ilias Apalodimas <ilias.apalodimas@linaro.org> | 2020-07-23 15:49:49 +0300 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-08-01 11:57:41 +0200 |
commit | e01aed47d6a0e4d99e886d80b885fe0898850357 (patch) | |
tree | 718e81bb971d7211e89604cbe4c95cd44c53760a /lib/efi_loader/Makefile | |
parent | db94dfbd525943b1bf4ecda81477cedfe70fc50e (diff) | |
download | u-boot-e01aed47d6a0e4d99e886d80b885fe0898850357.zip u-boot-e01aed47d6a0e4d99e886d80b885fe0898850357.tar.gz u-boot-e01aed47d6a0e4d99e886d80b885fe0898850357.tar.bz2 |
efi_loader: Enable run-time variable support for tee based variables
We recently added functions for storing/restoring variables
from a file to a memory backed buffer marked as __efi_runtime_data
commit f1f990a8c958 ("efi_loader: memory buffer for variables")
commit 5f7dcf079de8 ("efi_loader: UEFI variable persistence")
Using the same idea we now can support GetVariable() and GetNextVariable()
on the OP-TEE based variables as well.
So let's re-arrange the code a bit and move the commmon code for
accessing variables out of efi_variable.c. Create common functions for
reading variables from memory that both implementations can use on
run-time. Then just use those functions in the run-time variants of the
OP-TEE based EFI variable implementation and initialize the memory
buffer on ExitBootServices()
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'lib/efi_loader/Makefile')
-rw-r--r-- | lib/efi_loader/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/efi_loader/Makefile b/lib/efi_loader/Makefile index 441ac94..9bad1d1 100644 --- a/lib/efi_loader/Makefile +++ b/lib/efi_loader/Makefile @@ -37,11 +37,11 @@ obj-y += efi_setup.o obj-$(CONFIG_EFI_UNICODE_COLLATION_PROTOCOL2) += efi_unicode_collation.o obj-y += efi_var_common.o obj-y += efi_var_mem.o +obj-y += efi_var_file.o ifeq ($(CONFIG_EFI_MM_COMM_TEE),y) obj-y += efi_variable_tee.o else obj-y += efi_variable.o -obj-y += efi_var_file.o obj-$(CONFIG_EFI_VARIABLES_PRESEED) += efi_var_seed.o endif obj-y += efi_watchdog.o |