[PATCH v3 11/18] pxe: Clean up the use of bootfile

Tom Rini trini at konsulko.com
Fri Nov 12 16:39:53 CET 2021


On Thu, Oct 14, 2021 at 12:48:04PM -0600, Simon Glass wrote:

> 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: Simon Glass <sjg at chromium.org>
> Reviewed-by: Artem Lapkin <email2tema at gmail.com>
> Tested-by:  Artem Lapkin <email2tema at gmail.com>
> Reviewed-by: Ramon Fried <rfried.dev at gmail.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20211112/9ae271b5/attachment.sig>


More information about the U-Boot mailing list