[PATCH 3/6 v2] efi_loader: Introduce helper functions for EFI

Heinrich Schuchardt xypron.glpk at gmx.de
Sun Mar 14 09:49:33 CET 2021


On 3/13/21 10:47 PM, Ilias Apalodimas wrote:
> A following patch introduces a different logic for loading initrd's
> based on the EFI_LOAD_FILE2_PROTOCOL.
> Since similar logic can be applied in the future for other system files
> (i.e DTBs), let's add some helper functions which will retrieve and
> parse file paths stored in EFI variables.
>
> Signed-off-by: Ilias Apalodimas <ilias.apalodimas at linaro.org>
> ---
>   include/efi_helper.h            |  15 ++++
>   include/efi_loader.h            |   2 +
>   lib/efi_loader/Makefile         |   1 +
>   lib/efi_loader/efi_helper.c     | 133 ++++++++++++++++++++++++++++++++
>   lib/efi_loader/efi_var_common.c |  33 ++++++++
>   5 files changed, 184 insertions(+)
>   create mode 100644 include/efi_helper.h
>   create mode 100644 lib/efi_loader/efi_helper.c
>
> diff --git a/include/efi_helper.h b/include/efi_helper.h
> new file mode 100644
> index 000000000000..97492c65b6d2
> --- /dev/null
> +++ b/include/efi_helper.h
> @@ -0,0 +1,15 @@
> +/* SPDX-License-Identifier: GPL-2.0+ */
> +/*
> + * Copyright (c) 2020, Linaro Limited
> + */
> +
> +#if !defined _EFI_HELPER_H_
> +#define _EFI_HELPER_H

%s/_EFI_HELPER_H/_EFI_HELPER_H_/

Best regards

Heirnich


More information about the U-Boot mailing list