Skip to content

Commit

Permalink
boot: Update pxe bootmeth to record images
Browse files Browse the repository at this point in the history
Record images loaded by this bootmeth.

Signed-off-by: Simon Glass <sjg@chromium.org>
  • Loading branch information
sjg20 authored and trini committed Jan 15, 2025
1 parent 3ed218e commit 985f9f7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions boot/bootmeth_pxe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 985f9f7

Please sign in to comment.