[PATCH v3 16/18] pxe: Refactor sysboot to have one helper

Tom Rini trini at konsulko.com
Fri Nov 12 16:40:23 CET 2021


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

> 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: 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/3c4d38d8/attachment.sig>


More information about the U-Boot mailing list