
12 Nov
2021
12 Nov
'21
4:40 p.m.
On Thu, Oct 14, 2021 at 12:48:08PM -0600, Simon Glass wrote:
It is pretty strange that the pxe code uses the 'filesize' environment variable find the size of a file it has just read.
Partly this is because it uses the command-line interpreter to parse its request to load the file.
As a first step towards unwinding this, return it directly from the getfile() function. This makes the code a bit longer, for now, but will be cleaned up in future patches.
Signed-off-by: Simon Glass sjg@chromium.org Reviewed-by: Artem Lapkin email2tema@gmail.com Tested-by: Artem Lapkin email2tema@gmail.com Reviewed-by: Ramon Fried rfried.dev@gmail.com
Applied to u-boot/master, thanks!
--
Tom