From: Heinrich Schuchardt Date: Fri, 19 Mar 2021 02:50:57 +0000 (+0000) Subject: cmd/load: support uploading EFI binary via UART X-Git-Url: http://git.dujemihanovic.xyz/img/sics.gif?a=commitdiff_plain;h=76b0a19022e22a5bbb84cd76d516bdb625a70417;p=u-boot.git 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 --- diff --git a/cmd/load.c b/cmd/load.c index 5bbc39baea..b7894d7db0 100644 --- a/cmd/load.c +++ b/cmd/load.c @@ -11,12 +11,14 @@ #include #include #include +#include #include +#include #include #include -#include +#include #include -#include +#include #include #include #include @@ -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)); }