]> git.dujemihanovic.xyz Git - u-boot.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)
commit76e8acce12fe6e914fdab422c8af44956c1dac04
tree9661c73b35ed5dd0912ff068b4cfa8f7c6b38a5c
parent7dbd7dd399a8b0fe17a4ce1da421b48c0621532b
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