summaryrefslogtreecommitdiff
path: root/boot/bootmeth_extlinux.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2024-11-15 16:19:19 -0700
committerTom Rini <trini@konsulko.com>2025-01-15 08:48:42 -0600
commit3ed218e2ff6386477c8575367dd67613b588750a (patch)
tree8d564a428e9cd19d51cc04741b087bb9d8a4445d /boot/bootmeth_extlinux.c
parentea7f88f313270e2bfef5f4f91dfb34f86f90c675 (diff)
boot: Update extlinux pxe_getfile_func() to include type
Add a file-type parameter to this function and update all users. Add a proper comment to the function which we are here. This will allow tracking of the file types loaded by the extlinux bootmeth. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'boot/bootmeth_extlinux.c')
-rw-r--r--boot/bootmeth_extlinux.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/boot/bootmeth_extlinux.c b/boot/bootmeth_extlinux.c
index ae5ae4dbb34..63cb9a4a8af 100644
--- a/boot/bootmeth_extlinux.c
+++ b/boot/bootmeth_extlinux.c
@@ -68,7 +68,8 @@ static int extlinux_get_state_desc(struct udevice *dev, char *buf, int maxsize)
}
static int extlinux_getfile(struct pxe_context *ctx, const char *file_path,
- char *file_addr, ulong *sizep)
+ char *file_addr, enum bootflow_img_t type,
+ ulong *sizep)
{
struct extlinux_info *info = ctx->userdata;
ulong addr;
@@ -79,7 +80,7 @@ static int extlinux_getfile(struct pxe_context *ctx, const char *file_path,
/* Allow up to 1GB */
*sizep = 1 << 30;
ret = bootmeth_read_file(info->dev, info->bflow, file_path, addr,
- (enum bootflow_img_t)IH_TYPE_INVALID, sizep);
+ type, sizep);
if (ret)
return log_msg_ret("read", ret);