]> git.baikalelectronics.ru Git - uboot.git/commit
efi_loader: Add device path related functions for initrd via Boot####
authorIlias Apalodimas <ilias.apalodimas@linaro.org>
Wed, 17 Mar 2021 19:54:58 +0000 (21:54 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 25 Mar 2021 19:14:25 +0000 (20:14 +0100)
commit823f536f5f61953b964401a7a0b1fdb4e2299b8d
tree9661c73b35ed5dd0912ff068b4cfa8f7c6b38a5c
parent3981c8e934e70c100e03508224688b79cd5df0a3
efi_loader: Add device path related functions for initrd via Boot####

On the following patches we allow for an initrd path to be stored in
Boot#### variables.  Specifically we encode in the FIlePathList[] of
the EFI_LOAD_OPTIONS for each Boot#### variable.

The FilePathList[] array looks like this:
kernel - 0xff - VenMedia(initrd GUID) - initrd1 - 0x01 initrd2 - 0xff
So let's add the relevant functions to concatenate and retrieve a device
path based on a Vendor GUID.

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reformat function descriptions.
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
include/efi_loader.h
lib/efi_loader/efi_device_path.c