Skip to content
Commit 81a2f8d3 authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

pxe: Refactor sysboot to have one helper



The only difference between the three helpers is the filesystem type.
Factor this out and call the filesystem functions directly, instead of
through the command-line interpreter. This allows the file size to be
obtained directly, instead of via an environment variable.

We cannot do the same thing with PXE's tftpboot since there is no API
at present to obtain information about the file that was read. So there
is no point in changing pxe_getfile_func to use a ulong for the address,
for example.

This is as far as the refactoring can go for the present.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarArtem Lapkin <email2tema@gmail.com>
Tested-by: default avatarArtem Lapkin <email2tema@gmail.com>
Reviewed-by: default avatarRamon Fried <rfried.dev@gmail.com>
parent 4d79e884
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment