On 2026-05-14T12:49:13, Harsimran Singh Tungal <[email protected]> wrote: > efi_loader: move runtime variable read helpers to efi_variable.c > > Relocate the generic runtime variable read helpers from > efi_var_common.c to efi_variable.c. > > efi_var_common.c is always built, while efi_variable.c is only built > when CONFIG_EFI_MM_COMM_TEE is unset. Earlier patches in this series > add TEE/FF-A-specific runtime read helpers in efi_variable_tee.c. > Leaving the generic definitions in efi_var_common.c would therefore > cause a symbol clash in EFI_MM_COMM_TEE builds. > > Move efi_get_variable_runtime() and > efi_get_next_variable_name_runtime() into efi_variable.c so the > non-TEE backend keeps the generic memory-backed implementations, > while the TEE/FF-A backend continues to provide its own runtime read > helpers in efi_variable_tee.c. > > Signed-off-by: Harsimran Singh Tungal <[email protected]> > > lib/efi_loader/efi_var_common.c | 24 ------------------------ > lib/efi_loader/efi_variable.c | 24 ++++++++++++++++++++++++ > 2 files changed, 24 insertions(+), 24 deletions(-)
Reviewed-by: Simon Glass <[email protected]>

