u-boot/boot
Simon Glass 4d79e884ad pxe: Return the file size from the getfile() function
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>
2021-11-11 19:02:36 -05:00
..
android_ab.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
boot_fit.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
bootm.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
bootm_os.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
bootretry.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
common_fit.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
fdt_region.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
image-android-dt.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
image-android.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
image-board.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
image-cipher.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
image-fdt.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
image-fit-sig.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
image-fit.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
image-host.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
image-sig.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
image.c Create a new boot/ directory 2021-11-11 19:01:56 -05:00
Kconfig Create a new boot/ directory 2021-11-11 19:01:56 -05:00
Makefile pxe: Move pxe_utils files 2021-11-11 19:02:21 -05:00
pxe_utils.c pxe: Return the file size from the getfile() function 2021-11-11 19:02:36 -05:00