u-boot/boot
Simon Glass 12df842ee3 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: 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:28 -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: Clean up the use of bootfile 2021-11-11 19:02:28 -05:00