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

pxe: Clean up the use of bootfile



The 'bootfile' environment variable is read in the bowels of pxe_util to
provide a directory to which all loaded files are relative.

This is not obvious from the API to PXE and it is strange to make the
caller set an environment variable rather than pass this as a parameter.

The code is also convoluted, which this feature implemented by
get_bootfile_path().

Update the API to improve this. Unfortunately this means that
pxe_setup_ctx() can fail, so add error checking.

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 9e62e7ca
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