[PATCH v4 13/19] boot: Update pxe bootmeth to record images
Simon Glass
sjg at chromium.org
Sat Nov 16 00:19:20 CET 2024
Record images loaded by this bootmeth.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
(no changes since v3)
Changes in v3:
- Use the helper function
boot/bootmeth_pxe.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/boot/bootmeth_pxe.c b/boot/bootmeth_pxe.c
index b2873075ba5..b91e61bcbc4 100644
--- a/boot/bootmeth_pxe.c
+++ b/boot/bootmeth_pxe.c
@@ -135,6 +135,9 @@ static int extlinux_pxe_read_file(struct udevice *dev, struct bootflow *bflow,
return log_msg_ret("spc", -ENOSPC);
*sizep = size;
+ if (!bootflow_img_add(bflow, file_path, type, addr, size))
+ return log_msg_ret("pxi", -ENOMEM);
+
return 0;
}
--
2.34.1
More information about the U-Boot
mailing list