diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2021-03-19 02:50:57 +0000 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2021-03-25 20:12:49 +0100 |
commit | 7dbd7dd399a8b0fe17a4ce1da421b48c0621532b (patch) | |
tree | 6a62b34114b5215a40a54d87813bed1919468c5f /cmd | |
parent | f027222ad8c7488bab6f4e5b6ab77104081842c6 (diff) | |
download | u-boot-7dbd7dd399a8b0fe17a4ce1da421b48c0621532b.zip u-boot-7dbd7dd399a8b0fe17a4ce1da421b48c0621532b.tar.gz u-boot-7dbd7dd399a8b0fe17a4ce1da421b48c0621532b.tar.bz2 |
cmd/load: support uploading EFI binary via UART
When uploading an EFI binary via the UART we have to call
efi_set_bootdev() or we won't be able to execute it.
Put the includes into alphabetic order.
Fixes: 5f59518a7b1a ("efi_loader: setting boot device")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/load.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -11,12 +11,14 @@ #include <command.h> #include <console.h> #include <cpu_func.h> +#include <efi_loader.h> #include <env.h> +#include <exports.h> #include <flash.h> #include <image.h> -#include <s_record.h> +#include <mapmem.h> #include <net.h> -#include <exports.h> +#include <s_record.h> #include <serial.h> #include <xyzModem.h> #include <asm/cache.h> @@ -996,6 +998,10 @@ static ulong load_serial_ymodem(ulong offset, int mode) } } + if (IS_ENABLED(CONFIG_CMD_BOOTEFI)) + efi_set_bootdev("Uart", "", "", + map_sysmem(offset, 0), size); + } else { printf("%s\n", xyzModem_error(err)); } |