
4 Nov
2024
4 Nov
'24
6:51 p.m.
Record images loaded by this bootmeth.
Signed-off-by: Simon Glass sjg@chromium.org ---
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