mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-14 21:06:01 +01:00
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>
This commit is contained in:
parent
f027222ad8
commit
7dbd7dd399
10
cmd/load.c
10
cmd/load.c
@ -11,12 +11,14 @@
|
|||||||
#include <command.h>
|
#include <command.h>
|
||||||
#include <console.h>
|
#include <console.h>
|
||||||
#include <cpu_func.h>
|
#include <cpu_func.h>
|
||||||
|
#include <efi_loader.h>
|
||||||
#include <env.h>
|
#include <env.h>
|
||||||
|
#include <exports.h>
|
||||||
#include <flash.h>
|
#include <flash.h>
|
||||||
#include <image.h>
|
#include <image.h>
|
||||||
#include <s_record.h>
|
#include <mapmem.h>
|
||||||
#include <net.h>
|
#include <net.h>
|
||||||
#include <exports.h>
|
#include <s_record.h>
|
||||||
#include <serial.h>
|
#include <serial.h>
|
||||||
#include <xyzModem.h>
|
#include <xyzModem.h>
|
||||||
#include <asm/cache.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 {
|
} else {
|
||||||
printf("%s\n", xyzModem_error(err));
|
printf("%s\n", xyzModem_error(err));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user