mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
efi_loader: Uri() device path node
iPXE used Uri() device path nodes. So we should support them in the device path to text protocol. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
551a959a8c
commit
148ce20520
2 changed files with 19 additions and 0 deletions
|
@ -190,6 +190,19 @@ static char *dp_msging(char *s, struct efi_device_path *dp)
|
|||
|
||||
break;
|
||||
}
|
||||
case DEVICE_PATH_SUB_TYPE_MSG_URI: {
|
||||
struct efi_device_path_uri *udp =
|
||||
(struct efi_device_path_uri *)dp;
|
||||
int n;
|
||||
|
||||
n = (int)udp->dp.length - sizeof(struct efi_device_path_uri);
|
||||
|
||||
s += sprintf(s, "Uri(");
|
||||
if (n > 0 && n < MAX_NODE_LEN - 6)
|
||||
s += snprintf(s, n, "%s", (char *)udp->uri);
|
||||
s += sprintf(s, ")");
|
||||
break;
|
||||
}
|
||||
case DEVICE_PATH_SUB_TYPE_MSG_SD:
|
||||
case DEVICE_PATH_SUB_TYPE_MSG_MMC: {
|
||||
const char *typename =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue