Skip to contentSkip to conversation

efi_loader: device_path: add support for HTTP device path

PATCH Superseded Adriano Cordova 1 participant 1 message Nov 8, 2024

v1 of 7 Superseded Latest is v7 →

lore
Share & tools
lore
#0 lore raw

PATCH 8/15 efi_loader: device_path: add support for HTTP device path

Add efi_dp_from_http to form a device path from HTTP. The device path is the concatenation of the device path returned by efi_dp_from_ipv4 together with an URI node and an END node.

---
 include/efi_loader.h             |  1 +
 lib/efi_loader/efi_device_path.c | 51 ++++++++++++++++++++++++++++++++
 2 files changed, 52 insertions(+)
include/efi_loader.h +1 -0
index 44d29e7967..ab79364857 100644
@@ -872,6 +872,7 @@ struct efi_device_path *efi_dp_part_node(struct blk_desc *desc, int part);
 struct efi_device_path *efi_dp_from_file(const struct efi_device_path *dp,
 					 const char *path);
 struct efi_device_path *efi_dp_from_eth(void);
+struct efi_device_path *efi_dp_from_http(const char *server);
 struct efi_device_path *efi_dp_from_mem(uint32_t mem_type,
 					uint64_t start_address,
 					uint64_t end_address);
lib/efi_loader/efi_device_path.c +51 -0

57 lines not on this page · raw message

Signature · 1 line
2.43.0