bootmeth: Update the read_file() method to include a type
authorSimon Glass <sjg@chromium.org>
Fri, 15 Nov 2024 23:19:17 +0000 (16:19 -0700)
committerTom Rini <trini@konsulko.com>
Wed, 15 Jan 2025 14:48:42 +0000 (08:48 -0600)
commitaa0ba7fbda4121fa9f3f11161fb4ebdd7e227299
treef64a29a7ab63bf98ae8a4c30ba95e23d26ec911b
parentd4c60aa91b8a3a7b880c2a6ec24664108cd67730
bootmeth: Update the read_file() method to include a type

We want to record the type of each file which is loaded. Add an new
parameter for this, to the read_file() method. Update all users.

Make bootmeth_common_read_file() store information about the image that
is read.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
boot/bootmeth-uclass.c
boot/bootmeth_android.c
boot/bootmeth_cros.c
boot/bootmeth_efi.c
boot/bootmeth_efi_mgr.c
boot/bootmeth_extlinux.c
boot/bootmeth_pxe.c
boot/bootmeth_qfw.c
boot/bootmeth_sandbox.c
boot/vbe_simple.c
include/bootmeth.h