efi_loader: prepare for read only OP-TEE variables

We currently have two implementations of UEFI variables:

* variables provided via an OP-TEE module
* variables stored in the U-Boot environment

Read only variables are up to now only implemented in the U-Boot
environment implementation.

Provide a common interface for both implementations that allows handling
read-only variables.

As variable access is limited to very few source files put variable
related definitions into new include efi_variable.h instead of efi_loader.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
Heinrich Schuchardt
2020-06-22 18:10:27 +02:00
parent 5a8d1f60b2
commit f2d2b3a11c
6 changed files with 193 additions and 181 deletions

View File

@@ -93,6 +93,8 @@ Runtime services
Variable services
~~~~~~~~~~~~~~~~~
.. kernel-doc:: include/efi_variable.h
:internal:
.. kernel-doc:: lib/efi_loader/efi_variable.c
:internal: