diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2021-02-03 18:46:07 +0100 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2021-02-04 20:12:41 +0100 |
commit | 02fc018a35c6f25d779ea86c735d266a6b121201 (patch) | |
tree | e254b4ad10d7d1bb6645b1972ad59a1ee14ba3a9 | |
parent | 6bca36cee2d37bb3f11f1db55acd3009b85713ad (diff) | |
download | u-boot-02fc018a35c6f25d779ea86c735d266a6b121201.zip u-boot-02fc018a35c6f25d779ea86c735d266a6b121201.tar.gz u-boot-02fc018a35c6f25d779ea86c735d266a6b121201.tar.bz2 |
efi_loader: VenMedia device path node
The Load File2 protocol exposes a device path with a VenMedia() node. Hence
our implementation of the device path to text protocol should support this
node.
Cc: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
-rw-r--r-- | lib/efi_loader/efi_device_path_to_text.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/efi_loader/efi_device_path_to_text.c b/lib/efi_loader/efi_device_path_to_text.c index 5ae4833..1aaa9f9 100644 --- a/lib/efi_loader/efi_device_path_to_text.c +++ b/lib/efi_loader/efi_device_path_to_text.c @@ -244,6 +244,21 @@ static char *dp_media(char *s, struct efi_device_path *dp) cddp->partition_start, cddp->partition_size); break; } + case DEVICE_PATH_SUB_TYPE_VENDOR_PATH: { + int i, n; + struct efi_device_path_vendor *vdp = + (struct efi_device_path_vendor *)dp; + + s += sprintf(s, "VenMedia(%pUl", &vdp->guid); + n = (int)vdp->dp.length - sizeof(struct efi_device_path_vendor); + if (n > 0) { + s += sprintf(s, ","); + for (i = 0; i < n; ++i) + s += sprintf(s, "%02x", vdp->vendor_data[i]); + } + s += sprintf(s, ")"); + break; + } case DEVICE_PATH_SUB_TYPE_FILE_PATH: { struct efi_device_path_file_path *fp = (struct efi_device_path_file_path *)dp; |